Skip to content
Snippets Groups Projects
Unverified Commit 8148790e authored by Juan I Carrano's avatar Juan I Carrano Committed by GitHub
Browse files

Merge pull request #10218 from bergzand/pr/crypt/helper_equal_const

crypto/helper: Change equals arguments to const
parents f8685ba8 ed23bdf2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ void crypto_block_inc_ctr(uint8_t block[16], int L)
}
}
int crypto_equals(uint8_t *a, uint8_t *b, size_t len)
int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len)
{
uint8_t diff = 0;
for (size_t i = 0; i < len; ++i, ++a, ++b) {
......
......@@ -47,7 +47,7 @@ void crypto_block_inc_ctr(uint8_t block[16], int L);
*
* @returns 0 iff the blocks are non-equal.
*/
int crypto_equals(uint8_t *a, uint8_t *b, size_t len);
int crypto_equals(const uint8_t *a, const uint8_t *b, size_t len);
#ifdef __cplusplus
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment