aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-aes.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Move AES key wrap/unwrap test cases into hwsim frameworkJouni Malinen2015-01-051-254/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Move AES-CBC test cases into hwsim frameworkJouni Malinen2015-01-051-67/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Move AES-128 EAX mode test cases into hwsim frameworkJouni Malinen2015-01-051-46/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Move OMAC1-AES test cases into hwsim module testsJouni Malinen2015-01-051-92/+0
| | | | | | | This makes sure the test cases are executed automatically with rest of the hwsim tests. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add module tests for AES-SIVJouni Malinen2015-01-051-58/+0
| | | | | | | | | This moves the AES-SIV test case from tests/test-aes.c to be part of wpa_supplicant module testing framework with a new src/crypto/crypto_module_tests.c component. In addition, the second test vector from RFC 5297 is also included for additional coverage. Signed-off-by: Jouni Malinen <j@w1.fi>
* Add a test vector for AES-SIVJouni Malinen2014-10-191-0/+58
| | | | | | | This verifies that the AES-SIV implementation results matches RFC 5297 test vector A.1. Signed-off-by: Jouni Malinen <j@w1.fi>
* test-aes: Allow NIST key wrap test vectors to be verifiedJouni Malinen2014-10-071-0/+280
| | | | | | | | | | | | | | | | 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>
* AES: Extend key wrap design to support longer AES keysJouni Malinen2014-10-071-17/+238
| | | | | | | | | | | This adds kek_len argument to aes_wrap() and aes_unwrap() functions and allows AES to be initialized with 192 and 256 bit KEK in addition to the previously supported 128 bit KEK. The test vectors in test-aes.c are extended to cover all the test vectors from RFC 3394. Signed-off-by: Jouni Malinen <j@w1.fi>
* Use ARRAY_SIZE() macroJouni Malinen2013-10-261-3/+3
| | | | | | | Replace the common sizeof(a)/sizeof(a[0]) constructions with a more readable version. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add aes_gmac() as a wrapper for AES GMAC operations using GCMJouni Malinen2012-09-091-0/+14
| | | | | | | This is otherwise identical to aes_gcm_ae() but does not use the plain/crypt pointers since no data is encrypted. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add support for using 192-bit and 256-bit keys with AES-GCMJouni Malinen2012-09-091-7/+116
| | | | | | | | This adds 192-bit and 256-bit key support to the internal AES implementation and extends the AES-GCM functions to accept key length to enable longer AES key use. Signed-hostap: Jouni Malinen <j@w1.fi>
* Support arbitrary IV length with AES-GCMJouni Malinen2012-09-081-9/+18
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Add AES-GCM test vectors from gcm-spec.pdfJouni Malinen2012-09-081-1/+149
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Resolve compiler warnings in the test programsJouni Malinen2009-12-051-8/+9
|
* Move more tests from wpa_supplicant/tests into testsJouni Malinen2009-12-051-0/+307