From 1cd2e05d82906d0f662148b72b24ccd6ff8aecec Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sat, 15 Aug 2009 13:27:55 +0200 Subject: [PATCH] ct comment --- lib/hcrypto/des.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hcrypto/des.c b/lib/hcrypto/des.c index 7dc4823b5..c9067d7bc 100644 --- a/lib/hcrypto/des.c +++ b/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;