crypto/helper: Change equals arguments to const
This commit is contained in:
parent
27f61a2ca6
commit
ed23bdf25a
@ -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;
|
uint8_t diff = 0;
|
||||||
for (size_t i = 0; i < len; ++i, ++a, ++b) {
|
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.
|
* @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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user