summaryrefslogtreecommitdiff
path: root/umac-set-key.c
diff options
context:
space:
mode:
Diffstat (limited to 'umac-set-key.c')
-rw-r--r--umac-set-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/umac-set-key.c b/umac-set-key.c
index fa4ca6b7..13a9589c 100644
--- a/umac-set-key.c
+++ b/umac-set-key.c
@@ -86,7 +86,7 @@ _umac_set_key (uint32_t *l1_key, uint32_t *l2_key,
aes128_set_encrypt_key (aes, key);
- size = UMAC_DATA_SIZE / 4 + 4*(n-1);
+ size = UMAC_BLOCK_SIZE / 4 + 4*(n-1);
umac_kdf (aes, 1, size * sizeof(uint32_t), (uint8_t *) l1_key);
BE_SWAP32_N (size, l1_key);