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 */ |
58#include <sys/param.h> 59#include <sys/systm.h> |
60#include <crypto/des/des_locl.h> 61#include <crypto/des/podd.h> 62#include <crypto/des/sk.h> 63 |
64static int check_parity __P((des_cblock (*))); |
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 --- |