test-aes: Allow NIST key wrap test vectors to be verified
authorJouni Malinen <j@w1.fi>
Tue, 7 Oct 2014 11:53:09 +0000 (14:53 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 7 Oct 2014 11:57:10 +0000 (14:57 +0300)
commitb1f4015cf518e07ca1204b6d942565c9ad63cc0c
treeb783df191ebde46f1c7048fff7d367c3c606e423
parenta256506ddc279a730c38e3ecdc1d86e6ef23cbeb
test-aes: Allow NIST key wrap test vectors to be verified

This allows the aes_wrap() and aes_unwrap() implementation to be
verified against KW_{AE,AD}_{128,192,256}.txt test vectors from
http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip

For example:
./test-aes NIST-KW-AE kwtestvectors/KW_AE_128.txt
./test-aes NIST-KW-AE kwtestvectors/KW_AE_192.txt
./test-aes NIST-KW-AE kwtestvectors/KW_AE_256.txt
./test-aes NIST-KW-AD kwtestvectors/KW_AD_128.txt
./test-aes NIST-KW-AD kwtestvectors/KW_AD_192.txt
./test-aes NIST-KW-AD kwtestvectors/KW_AD_256.txt

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/test-aes.c