Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nettle
nettle
Commits
f1abc081
Commit
f1abc081
authored
Apr 16, 2014
by
Niels Möller
Browse files
Deleted unneeded test for NULL authdata
parent
43060f8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
f1abc081
2014-04-16 Niels Möller <nisse@lysator.liu.se>
* 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.
...
...
testsuite/ccm-test.c
View file @
f1abc081
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment