|
iPXE
|
Go to the source code of this file.
Data Structures | |
| struct | exchange_test |
| A key exchange test. More... | |
Macros | |
| #define | PRIVATE(...) |
| Define inline private key. | |
| #define | PARTNER(...) |
| Define inline partner public key. | |
| #define | PUBLIC(...) |
| Define inline expected public key. | |
| #define | SHARED(...) |
| Define inline expected shared secret. | |
| #define | SHARED_FAIL SHARED() |
| Define inline expected failure result. | |
| #define | EXCHANGE_TEST(name, EXCHANGE, PRIVATE, PARTNER, PUBLIC, SHARED) |
| Define a key exchange test. | |
| #define | exchange_ok(test) |
| Report a key exchange test result. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | exchange_okx (struct exchange_test *test, const char *file, unsigned int line) |
| Report a key exchange test result. | |
| #define PRIVATE | ( | ... | ) |
Define inline private key.
Definition at line 33 of file exchange_test.h.
Referenced by EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_TEST(), and PUBKEY_TEST().
| #define PARTNER | ( | ... | ) |
Define inline partner public key.
Definition at line 36 of file exchange_test.h.
Referenced by EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), and EXCHANGE_TEST().
| #define PUBLIC | ( | ... | ) |
Define inline expected public key.
Definition at line 39 of file exchange_test.h.
Referenced by EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_SIGN_TEST(), PUBKEY_TEST(), and PUBKEY_TEST().
| #define SHARED | ( | ... | ) |
Define inline expected shared secret.
Definition at line 42 of file exchange_test.h.
Referenced by EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), and EXCHANGE_TEST().
| #define SHARED_FAIL SHARED() |
Define inline expected failure result.
Definition at line 45 of file exchange_test.h.
Referenced by EXCHANGE_TEST(), EXCHANGE_TEST(), EXCHANGE_TEST(), and EXCHANGE_TEST().
Define a key exchange test.
| name | Test name |
| EXCHANGE | Key exchange algorithm |
| PRIVATE | Private key |
| PARTNER | Partner public key |
| PUBLIC | Expected public key |
| SHARED | Expected shared secret |
| test | Key exchange test |
Definition at line 58 of file exchange_test.h.
| #define exchange_ok | ( | test | ) |
Report a key exchange test result.
| test | Key exchange test |
Definition at line 81 of file exchange_test.h.
Referenced by ffdhe_test_exec(), p256_test_exec(), p384_test_exec(), and x25519_test_exec().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
extern |
Report a key exchange test result.
| test | Key exchange test |
| file | Test code file |
| line | Test code line |
Definition at line 47 of file exchange_test.c.
References DBGC, DBGC_HDA, exchange_agree(), exchange_share(), free, malloc(), memcmp(), exchange_algorithm::name, NULL, okx, exchange_algorithm::privsize, exchange_algorithm::pubsize, rc, exchange_algorithm::sharedsize, and test.