|
iPXE
|
Public key self-tests. More...
#include <stdint.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <ipxe/crypto.h>#include <ipxe/test.h>#include "pubkey_test.h"Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| void | pubkey_okx (struct pubkey_test *test, const char *file, unsigned int line) |
| Report public key encryption and decryption test result. More... | |
| void | pubkey_sign_okx (struct pubkey_sign_test *test, const char *file, unsigned int line) |
| Report public key signature test result. More... | |
Public key self-tests.
Definition in file pubkey_test.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| void pubkey_okx | ( | struct pubkey_test * | test, |
| const char * | file, | ||
| unsigned int | line | ||
| ) |
Report public key encryption and decryption test result.
| test | Public key encryption and decryption test |
| file | Test code file |
| line | Test code line |
Definition at line 50 of file pubkey_test.c.
References asn1_built(), asn1_compare(), asn1_builder::data, free, asn1_builder::len, NULL, okx, pubkey_decrypt(), pubkey_encrypt(), pubkey_match(), and test.
| void pubkey_sign_okx | ( | struct pubkey_sign_test * | test, |
| const char * | file, | ||
| unsigned int | line | ||
| ) |
Report public key signature test result.
| test | Public key signature test |
| file | Test code file |
| line | Test code line |
Definition at line 107 of file pubkey_test.c.
References asn1_built(), asn1_compare(), digest_algorithm::ctxsize, digest_final(), digest_init(), digest_update(), digest_algorithm::digestsize, free, NULL, okx, pubkey_match(), pubkey_sign(), pubkey_verify(), signature, and test.
1.8.15