diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-12-10 00:37:26 +0100 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-12-10 04:02:48 +0100 |
commit | 9b340281873643d2b8a33047dc8bfa607f7e0c3c (patch) | |
tree | 838e32fedf1012a70596d319da3f18f3c8d04b84 /test | |
parent | change into hex string constants to avoid overflow warnings (diff) | |
download | openssl-9b340281873643d2b8a33047dc8bfa607f7e0c3c.tar.xz openssl-9b340281873643d2b8a33047dc8bfa607f7e0c3c.zip |
Eliminate NOP cast
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/ideatest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ideatest.c b/test/ideatest.c index 947ab84670..e572984c4f 100644 --- a/test/ideatest.c +++ b/test/ideatest.c @@ -25,7 +25,7 @@ static const unsigned char c[8] = { 0x11, 0xFB, 0xED, 0x2B, 0x01, 0x98, 0x6D, 0x static unsigned char out[80]; -static const char text[] = "Hello to all people out there"; +static const unsigned char text[] = "Hello to all people out there"; static const unsigned char cfb_key[16] = { 0xe1, 0xf0, 0xc3, 0xd2, 0xa5, 0xb4, 0x87, 0x96, @@ -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((const unsigned char *)text, out, text_len, &key, iv, 1); + IDEA_cbc_encrypt(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); |