From: Niels Möller Date: Wed, 16 Apr 2014 05:13:13 +0000 (+0200) Subject: Deleted unneeded test for NULL authdata X-Git-Tag: nettle_3.0_release_20140607~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1abc081200a5b5cd6c1cfac55e1cdbab1804bcb;p=thirdparty%2Fnettle.git Deleted unneeded test for NULL authdata --- diff --git a/ChangeLog b/ChangeLog index 13f50a0c..b154a1ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2014-04-16 Niels Möller + * testsuite/ccm-test.c (test_cipher_ccm): Deleted check for NULL + authdata. + * sha3-224.c (sha3_224_init): Pass pointer to context struct, not pointer to first element, to memset. * sha3-256.c (sha3_256_init): Likewise. diff --git a/testsuite/ccm-test.c b/testsuite/ccm-test.c index 1fe77096..9a7161b9 100644 --- a/testsuite/ccm-test.c +++ b/testsuite/ccm-test.c @@ -120,7 +120,6 @@ test_cipher_ccm(const struct nettle_cipher *cipher, ASSERT (cleartext->length <= ciphertext->length); ASSERT ((cleartext->length + CCM_BLOCK_SIZE) >= ciphertext->length); tlength = ciphertext->length - cleartext->length; - if (!authdata) repeat = 0; de_data = xalloc(cleartext->length); en_data = xalloc(ciphertext->length);