diff options
author | Niels Möller <nisse@lysator.liu.se> | 2013-04-11 15:10:43 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-11 15:10:43 +0200 |
commit | 5938db8f02065cd62cc0d6fcb8d2c6cce48fb5eb (patch) | |
tree | 8caf15abace55dd223dcb4b7346e07e8f77eadbd /umac-set-key.c | |
parent | 34aef19b0f571e24b575a92d0262df7fe755bf6b (diff) | |
download | nettle-5938db8f02065cd62cc0d6fcb8d2c6cce48fb5eb.tar.gz |
Minor reorg of umac l3 hashing.
Diffstat (limited to 'umac-set-key.c')
-rw-r--r-- | umac-set-key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/umac-set-key.c b/umac-set-key.c index c1f79687..05dcf697 100644 --- a/umac-set-key.c +++ b/umac-set-key.c @@ -90,8 +90,8 @@ _umac_set_key (uint32_t *l1_key, uint32_t *l2_key, umac_kdf (aes, 3, size * sizeof(uint64_t), (uint8_t *) l3_key1); _umac_l3_init (size, l3_key1); + /* No need to byteswap these subkeys. */ umac_kdf (aes, 4, n * sizeof(uint32_t), (uint8_t *) l3_key2); - BE_SWAP32_N (n, l3_key2); umac_kdf (aes, 0, UMAC_KEY_SIZE, buffer); aes_set_encrypt_key (aes, UMAC_KEY_SIZE, buffer); |