|
iPXE
|
A public key algorithm. More...
#include <crypto.h>
Data Fields | |
| const char * | name |
| Algorithm name. More... | |
| int(* | encrypt )(const struct asn1_cursor *key, const struct asn1_cursor *plaintext, struct asn1_builder *ciphertext) |
| Encrypt. More... | |
| int(* | decrypt )(const struct asn1_cursor *key, const struct asn1_cursor *ciphertext, struct asn1_builder *plaintext) |
| Decrypt. More... | |
| int(* | sign )(const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, struct asn1_builder *builder) |
| Sign digest value. More... | |
| int(* | verify )(const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, const struct asn1_cursor *signature) |
| Verify signed digest value. More... | |
| int(* | match )(const struct asn1_cursor *private_key, const struct asn1_cursor *public_key) |
| Check that public key matches private key. More... | |
| const char* pubkey_algorithm::name |
Algorithm name.
Definition at line 123 of file crypto.h.
Referenced by tls_select_cipher(), tls_send_certificate_verify(), and tls_verify_dh_params().
| int( * pubkey_algorithm::encrypt) (const struct asn1_cursor *key, const struct asn1_cursor *plaintext, struct asn1_builder *ciphertext) |
Encrypt.
| key | Key |
| plaintext | Plaintext |
| ciphertext | Ciphertext |
| rc | Return status code |
Definition at line 131 of file crypto.h.
Referenced by pubkey_encrypt().
| int( * pubkey_algorithm::decrypt) (const struct asn1_cursor *key, const struct asn1_cursor *ciphertext, struct asn1_builder *plaintext) |
Decrypt.
| key | Key |
| ciphertext | Ciphertext |
| plaintext | Plaintext |
| rc | Return status code |
Definition at line 141 of file crypto.h.
Referenced by pubkey_decrypt().
| int( * pubkey_algorithm::sign) (const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, struct asn1_builder *builder) |
Sign digest value.
| key | Key |
| digest | Digest algorithm |
| value | Digest value |
| signature | Signature |
| rc | Return status code |
Definition at line 152 of file crypto.h.
Referenced by pubkey_sign().
| int( * pubkey_algorithm::verify) (const struct asn1_cursor *key, struct digest_algorithm *digest, const void *value, const struct asn1_cursor *signature) |
Verify signed digest value.
| key | Key |
| digest | Digest algorithm |
| value | Digest value |
| signature | Signature |
| rc | Return status code |
Definition at line 163 of file crypto.h.
Referenced by pubkey_verify().
| int( * pubkey_algorithm::match) (const struct asn1_cursor *private_key, const struct asn1_cursor *public_key) |
Check that public key matches private key.
| private_key | Private key |
| public_key | Public key |
| rc | Return status code |
Definition at line 172 of file crypto.h.
Referenced by pubkey_match().
1.8.15