summaryrefslogtreecommitdiff
path: root/chip/g/dcrypto/gcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/dcrypto/gcm.c')
-rw-r--r--chip/g/dcrypto/gcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/g/dcrypto/gcm.c b/chip/g/dcrypto/gcm.c
index 18016de612..2caddf4741 100644
--- a/chip/g/dcrypto/gcm.c
+++ b/chip/g/dcrypto/gcm.c
@@ -46,7 +46,7 @@ static void gcm_init_iv(
if (iv_len == 12) {
memcpy(counter, iv, 12);
- counter[3] = 1 << 24;
+ counter[3] = BIT(24);
} else {
size_t i;
uint32_t len = iv_len;