git.samba.org
/
abartlet
/
samba.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
s4:heimdal: import lorikeet-heimdal-200909210500 (commit 290db8d23647a27c39b97c189a0b...
[abartlet/samba.git/.git]
/
source4
/
heimdal
/
lib
/
hcrypto
/
des.c
diff --git
a/source4/heimdal/lib/hcrypto/des.c
b/source4/heimdal/lib/hcrypto/des.c
index 7dc4823b59e7eb6e3b8abdcfc8dba69b4645e96c..c9067d7bccb9881c5e451c4e1f259a5d45812422 100644
(file)
--- a/
source4/heimdal/lib/hcrypto/des.c
+++ b/
source4/heimdal/lib/hcrypto/des.c
@@
-182,6
+182,7
@@
DES_is_weak_key(DES_cblock *key)
{
int i;
+ /* Not constant time size if the key is weak, the app should not use it. */
for (i = 0; i < sizeof(weak_keys)/sizeof(weak_keys[0]); i++) {
if (memcmp(weak_keys[i], key, DES_CBLOCK_LEN) == 0)
return 1;