ct comment

This commit is contained in:
Love Hornquist Astrand
2009-08-15 13:27:55 +02:00
parent b657b2e680
commit 1cd2e05d82

View File

@@ -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;