summaryrefslogtreecommitdiffstats
path: root/crypto/des
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-05-29 20:59:38 +0000
committerRichard Levitte <levitte@openssl.org>2003-05-29 20:59:38 +0000
commitf7f8d82aaa4403d429064ab0bb1ae5ed4e0e617b (patch)
treea7239a6fdafdf8f20586198296c6f42735e23e01 /crypto/des
parent4f17dfcd752221fc7515d55642cacd9aa6d1d0af (diff)
PR: 630
Avoid looking outside the key_data array.
Diffstat (limited to 'crypto/des')
-rw-r--r--crypto/des/destest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/des/destest.c b/crypto/des/destest.c
index 687c00c792..3983ac8e5f 100644
--- a/crypto/des/destest.c
+++ b/crypto/des/destest.c
@@ -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);