]> git.ipfire.org Git - thirdparty/hostap.git/commit
AES: Extend key wrap implementation to support longer data
authorJouni Malinen <j@w1.fi>
Tue, 7 Oct 2014 11:45:22 +0000 (14:45 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Oct 2014 11:57:10 +0000 (14:57 +0300)
commita256506ddc279a730c38e3ecdc1d86e6ef23cbeb
treeac14a474028782cf6d2cd69615ace74221f3181c
parenteefec1e40b8721b37aff8187741c824c7913d0f0
AES: Extend key wrap implementation to support longer data

This extends the "XOR t" operation in aes_wrap() and aes_unwrap() to
handle up to four octets of the n*h+i value instead of just the least
significant octet. This allows the plaintext be longer than 336 octets
which was the previous limit.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/aes-unwrap.c
src/crypto/aes-wrap.c