]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps: fix Camellia CBC performance loop
authorPauli <pauli@openssl.org>
Wed, 7 Apr 2021 02:48:14 +0000 (12:48 +1000)
committerPauli <pauli@openssl.org>
Thu, 8 Apr 2021 12:57:24 +0000 (22:57 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14786)

apps/speed.c

index 3cb93ecf12071333e89555f1a05d464871b2c4bb..56c896c31e10371516ea881e9f45a8185aafd8e2 100644 (file)
@@ -2114,7 +2114,7 @@ int speed_main(int argc, char **argv)
         if (doit[algindex]) {
             int st = 1;
 
-            keylen = 16 + i * 8;
+            keylen = 16 + k * 8;
             for (i = 0; st && i < loopargs_len; i++) {
                 loopargs[i].ctx = init_evp_cipher_ctx(names[algindex],
                                                       key32, keylen);