|
iPXE
|
HMAC self-tests. More...
Go to the source code of this file.
Data Structures | |
| struct | hmac_test |
| An HMAC test. More... | |
Macros | |
| #define | KEY(...) |
| Define inline key data. | |
| #define | DATA(...) |
| Define inline data. | |
| #define | EXPECTED(...) |
| Define inline expected HMAC. | |
| #define | HMAC_TEST(name, DIGEST, KEY, DATA, EXPECTED) |
| Define an HMAC test. | |
| #define | hmac_ok(test) |
| Report an HMAC test result. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | hmac_okx (struct hmac_test *test, const char *file, unsigned int line) |
| Report an HMAC test result. | |
HMAC self-tests.
Definition in file hmac_test.h.
| #define KEY | ( | ... | ) |
| #define DATA | ( | ... | ) |
| #define EXPECTED | ( | ... | ) |
Define an HMAC test.
| test | HMAC test |
Definition at line 53 of file hmac_test.h.
| #define hmac_ok | ( | test | ) |
Report an HMAC test result.
| test | HMAC test |
Definition at line 75 of file hmac_test.h.
Referenced by hmac_test_exec(), wycheproof_hmac_sha1_exec(), wycheproof_hmac_sha224_exec(), wycheproof_hmac_sha256_exec(), wycheproof_hmac_sha384_exec(), wycheproof_hmac_sha512_224_exec(), wycheproof_hmac_sha512_256_exec(), and wycheproof_hmac_sha512_exec().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
Report an HMAC test result.
| test | HMAC test |
| file | Test code file |
| line | Test code line |
Definition at line 50 of file hmac_test.c.
References digest_algorithm::blocksize, ctx, digest_algorithm::ctxsize, DBGC, DBGC_HDA, digest_algorithm::digestsize, hmac_ctxsize(), hmac_final(), hmac_init(), hmac_init_key(), hmac_key(), hmac_keysize(), hmac_update(), key, memcmp(), digest_algorithm::name, okx, and test.