projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b6ae3c
)
add missing const in cast
author
Christos Zoulas
<christos@zoulas.com>
Sun, 30 Sep 2018 20:54:25 +0000
(16:54 -0400)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Mon, 10 Dec 2018 03:02:49 +0000
(22:02 -0500)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
test/ideatest.c
patch
|
blob
|
history
diff --git
a/test/ideatest.c
b/test/ideatest.c
index 58834a11e70469d009e3da15938eb38bba04f481..947ab84670624808f7ee44fc13939bacb852b292 100644
(file)
--- a/
test/ideatest.c
+++ b/
test/ideatest.c
@@
-74,7
+74,7
@@
static int test_idea_cbc(void)
IDEA_set_encrypt_key(k, &key);
IDEA_set_decrypt_key(&key, &dkey);
memcpy(iv, k, sizeof(iv));
- IDEA_cbc_encrypt((unsigned char *)text, out, text_len, &key, iv, 1);
+ IDEA_cbc_encrypt((
const
unsigned char *)text, out, text_len, &key, iv, 1);
memcpy(iv, k, sizeof(iv));
IDEA_cbc_encrypt(out, out, IDEA_BLOCK, &dkey, iv, 0);
IDEA_cbc_encrypt(&out[8], &out[8], text_len - 8, &dkey, iv, 0);