properl y check DES weak key. KAME PR 363
This commit is contained in:
parent
c45675aa2b
commit
7925bc6220
|
@ -1,5 +1,5 @@
|
||||||
/* $NetBSD: des_setkey.c,v 1.4 2001/02/21 21:39:53 jdolecek Exp $ */
|
/* $NetBSD: des_setkey.c,v 1.5 2001/07/03 14:29:45 itojun Exp $ */
|
||||||
/* $KAME: des_setkey.c,v 1.5 2000/11/06 13:58:09 itojun Exp $ */
|
/* $KAME: des_setkey.c,v 1.6 2001/07/03 14:27:53 itojun Exp $ */
|
||||||
|
|
||||||
/* crypto/des/set_key.c */
|
/* crypto/des/set_key.c */
|
||||||
/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
|
/* Copyright (C) 1995-1996 Eric Young (eay@mincom.oz.au)
|
||||||
|
@ -131,10 +131,7 @@ des_cblock (*key);
|
||||||
* this section very often :-(, thanks to
|
* this section very often :-(, thanks to
|
||||||
* engineering@MorningStar.Com for the fix
|
* engineering@MorningStar.Com for the fix
|
||||||
* eay 93/06/29 */
|
* eay 93/06/29 */
|
||||||
/*
|
if (bcmp(weak_keys[i],key,sizeof(*key)) == 0) return(1);
|
||||||
if (memcmp(weak_keys[i],key,sizeof(key)) == 0) return(1);
|
|
||||||
*/
|
|
||||||
if (bcmp(weak_keys[i],key,sizeof(key)) == 0) return(1);
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue