iPXE
|
A public key algorithm. More...
#include <crypto.h>
Data Fields | |
const char * | name |
Algorithm name. More... | |
size_t | ctxsize |
Context size. More... | |
int(* | init )(void *ctx, const void *key, size_t key_len) |
Initialise algorithm. More... | |
size_t(* | max_len )(void *ctx) |
Calculate maximum output length. More... | |
int(* | encrypt )(void *ctx, const void *data, size_t len, void *out) |
Encrypt. More... | |
int(* | decrypt )(void *ctx, const void *data, size_t len, void *out) |
Decrypt. More... | |
int(* | sign )(void *ctx, struct digest_algorithm *digest, const void *value, void *signature) |
Sign digest value. More... | |
int(* | verify )(void *ctx, struct digest_algorithm *digest, const void *value, const void *signature, size_t signature_len) |
Verify signed digest value. More... | |
void(* | final )(void *ctx) |
Finalise algorithm. More... | |
int(* | match )(const void *private_key, size_t private_key_len, const void *public_key, size_t public_key_len) |
Check that public key matches private key. More... | |
const char* pubkey_algorithm::name |
Algorithm name.
Definition at line 122 of file crypto.h.
Referenced by tls_select_cipher(), tls_send_certificate_verify(), and tls_verify_dh_params().
size_t pubkey_algorithm::ctxsize |
Context size.
Definition at line 124 of file crypto.h.
Referenced by cms_verify_digest(), ocsp_check_signature(), tls_send_certificate_verify(), tls_set_cipher(), and x509_check_signature().
int( * pubkey_algorithm::sign) (void *ctx, struct digest_algorithm *digest, const void *value, void *signature) |
int( * pubkey_algorithm::verify) (void *ctx, struct digest_algorithm *digest, const void *value, const void *signature, size_t signature_len) |
void( * pubkey_algorithm::final) (void *ctx) |
int( * pubkey_algorithm::match) (const void *private_key, size_t private_key_len, const void *public_key, size_t public_key_len) |
Check that public key matches private key.
private_key | Private key |
private_key_len | Private key length |
public_key | Public key |
public_key_len | Public key length |
rc | Return status code |