1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

crypto/helper: Change equals arguments to const

This commit is contained in:
Koen Zandberg 2018-10-21 20:27:33 +02:00
parent 27f61a2ca6
commit ed23bdf25a
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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
}