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 pubkey_algorithm::max_len, memcmp(), okx, pubkey_decrypt(), pubkey_encrypt(), pubkey_max_len(), 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 97 of file pubkey_test.c.
References digest_algorithm::ctxsize, digest_final(), digest_init(), digest_update(), digest_algorithm::digestsize, memcmp(), memcpy(), okx, pubkey_max_len(), pubkey_sign(), pubkey_verify(), signature, and test.