Deleted Added
full compact
des_setkey.c (63249) des_setkey.c (78064)
1/* $FreeBSD: head/sys/crypto/des/des_setkey.c 62587 2000-07-04 16:35:15Z itojun $ */
2/* $KAME: des_setkey.c,v 1.3 2000/03/27 04:36:33 sumikawa Exp $ */
1/* $FreeBSD: head/sys/crypto/des/des_setkey.c 78064 2001-06-11 12:39:29Z ume $ */
2/* $KAME: des_setkey.c,v 1.5 2000/11/06 13:58:09 itojun Exp $ */
3
4/* crypto/des/set_key.c */
5/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
6 * All rights reserved.
7 *
8 * This file is part of an SSL implementation written
9 * by Eric Young (eay@mincom.oz.au).
10 * The implementation was written so as to conform with Netscapes SSL

--- 39 unchanged lines hidden (view full) ---

50
51/* set_key.c v 1.4 eay 24/9/91
52 * 1.4 Speed up by 400% :-)
53 * 1.3 added register declarations.
54 * 1.2 unrolled make_key_sched a bit more
55 * 1.1 added norm_expand_bits
56 * 1.0 First working version
57 */
3
4/* crypto/des/set_key.c */
5/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
6 * All rights reserved.
7 *
8 * This file is part of an SSL implementation written
9 * by Eric Young (eay@mincom.oz.au).
10 * The implementation was written so as to conform with Netscapes SSL

--- 39 unchanged lines hidden (view full) ---

50
51/* set_key.c v 1.4 eay 24/9/91
52 * 1.4 Speed up by 400% :-)
53 * 1.3 added register declarations.
54 * 1.2 unrolled make_key_sched a bit more
55 * 1.1 added norm_expand_bits
56 * 1.0 First working version
57 */
58#include <sys/param.h>
59#include <sys/systm.h>
58#include <crypto/des/des_locl.h>
59#include <crypto/des/podd.h>
60#include <crypto/des/sk.h>
61
60#include <crypto/des/des_locl.h>
61#include <crypto/des/podd.h>
62#include <crypto/des/sk.h>
63
62#ifndef NOPROTO
63static int check_parity(des_cblock (*key));
64#else
65static int check_parity();
66#endif
64static int check_parity __P((des_cblock (*)));
67
68int des_check_key=0;
69
70void des_set_odd_parity(key)
71des_cblock (*key);
72 {
73 int i;
74

--- 165 unchanged lines hidden ---
65
66int des_check_key=0;
67
68void des_set_odd_parity(key)
69des_cblock (*key);
70 {
71 int i;
72

--- 165 unchanged lines hidden ---