diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-01-19 11:15:42 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-01-19 11:15:42 +0100 |
commit | 9ccb6864be25356108d2782871ea07f5be038a9b (patch) | |
tree | d2a2ed4b3eafc8262fcbbcc89b6c07460028b386 | |
parent | 2379ddff178e732a84d48556124a3c186e64114a (diff) | |
download | libssh-9ccb6864be25356108d2782871ea07f5be038a9b.tar.gz libssh-9ccb6864be25356108d2782871ea07f5be038a9b.tar.xz libssh-9ccb6864be25356108d2782871ea07f5be038a9b.zip |
tests: Initialize output and iv in torture_crypto
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | tests/unittests/torture_crypto.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unittests/torture_crypto.c b/tests/unittests/torture_crypto.c index 4eaa4f61..7c8cf55b 100644 --- a/tests/unittests/torture_crypto.c +++ b/tests/unittests/torture_crypto.c @@ -49,11 +49,12 @@ static int get_cipher(struct ssh_cipher_struct *cipher, const char *ciphername){ return SSH_ERROR; } -static void torture_crypto_aes256_cbc(void **state){ +static void torture_crypto_aes256_cbc(void **state) +{ + uint8_t output[sizeof(cleartext)] = {0}; + uint8_t iv[16] = {0}; struct ssh_cipher_struct cipher; int rc; - uint8_t output[sizeof(cleartext)]; - uint8_t iv[16]; (void)state; rc = get_cipher(&cipher, "aes256-cbc"); |