Skip to content
Snippets Groups Projects
Unverified Commit 3ca51d8b authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

tests-crypto/test-crypto.h: update api to const input buffers

Input buffers are not modified, so can be declared const arguments.
This will allow using `const` inputs for `modes/ccm` tests.
parent c87fe94e
Branches
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ void tests_crypto(void); ...@@ -40,7 +40,7 @@ void tests_crypto(void);
*/ */
Test *tests_crypto_chacha_tests(void); Test *tests_crypto_chacha_tests(void);
static inline int compare(uint8_t *a, uint8_t *b, uint8_t len) static inline int compare(const uint8_t *a, const uint8_t *b, uint8_t len)
{ {
int result = 1; int result = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment