Avoid looking outside the key_data array.
This commit is contained in:
Richard Levitte 2003-05-29 20:59:30 +00:00
parent a598524ad6
commit 3fd6b9f6d4

View file

@ -431,7 +431,7 @@ int main(int argc, char *argv[])
#ifndef LIBDES_LIT
printf("Doing ede ecb\n");
for (i=0; i<(NUM_TESTS-1); i++)
for (i=0; i<(NUM_TESTS-2); i++)
{
DES_set_key_unchecked(&key_data[i],&ks);
DES_set_key_unchecked(&key_data[i+1],&ks2);