Skip to content

Commit c209ffc

Browse files
author
hackermnementh
authored
Merge pull request intel#20 from jsakkine-intel/master
Declare MAX_CALLS as const
2 parents e6cffb8 + 5c877f5 commit c209ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/source/cmac_mode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
#include <tinycrypt/utils.h>
3737

3838
/* max number of calls until change the key (2^48).*/
39-
static uint64_t MAX_CALLS = ((uint64_t)1 << 48);
39+
const static uint64_t MAX_CALLS = ((uint64_t)1 << 48);
4040

4141
/*
4242
* gf_wrap -- In our implementation, GF(2^128) is represented as a 16 byte

0 commit comments

Comments
 (0)