aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-sha1.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: Move SHA1 test cases into hwsim frameworkJouni Malinen2015-01-051-420/+0
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Add CAVP test vectors for byte-oriented SHA-1 and SHA-256Jouni Malinen2014-05-181-0/+99
| | | | | | | | | | This allows the SHA-1 implementation to be validated against the SHA1ShortMsg.rsp and SHA1LongMsg.rsp test vectors from http://csrc.nist.gov/groups/STM/cavp/documents/shs/shabytetestvectors.zip. Similarly, the SHA-256 can be validated against the SHA256ShortMsg.rsp and SHA256LongMsg.rsp. Signed-off-by: Jouni Malinen <j@w1.fi>
* tests: Fix couple of compiler warningsJouni Malinen2014-05-101-3/+3
| | | | Signed-off-by: Jouni Malinen <j@w1.fi>
* Use ARRAY_SIZE() macroJouni Malinen2013-10-261-4/+2
| | | | | | | Replace the common sizeof(a)/sizeof(a[0]) constructions with a more readable version. 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>
* Rename tls_prf() to tls_prf_sha1_md5()Jouni Malinen2011-11-271-2/+3
| | | | | | | | Prepare for multiple TLS PRF functions by renaming the SHA1+MD5 based TLS PRF function to more specific name and add tls_prf() within the internal TLS implementation as a wrapper for this for now. Signed-hostap: Jouni Malinen <j@w1.fi>
* test-sha1: Add test vectors from RFC 6070Jouni Malinen2011-01-101-0/+100
| | | | | | | The test with very large iterations count is commented out since it takes quite long to derive (it does pass, though). In addition, the last test vector is commented out since pbkdf2_sha1() does not support arbitrary binary passphrases (\0 inside the string).
* Resolve compiler warnings in the test programsJouni Malinen2009-12-051-3/+3
|
* Move more tests from wpa_supplicant/tests into testsJouni Malinen2009-12-051-0/+347