|
| void | EAC_init (void) |
| | Initializes OpenSSL and the EAC identifier.
|
| |
|
void | EAC_cleanup (void) |
| | Wrapper to EVP_cleanup()
|
| |
| EAC_CTX * | EAC_CTX_new (void) |
| | Create a new EAC context.
|
| |
| void | EAC_CTX_clear_free (EAC_CTX *ctx) |
| | Free an EAC context.
|
| |
| int | EAC_CTX_init_pace (EAC_CTX *ctx, int protocol, int curve) |
| | Initialize an EAC context for PACE.
|
| |
| int | EAC_CTX_init_ta (const EAC_CTX *ctx, const unsigned char *privkey, size_t privkey_len, const unsigned char *cvca, size_t cvca_len) |
| | Initialize an EAC context for TA with the terminal's PKI data. Use either a CV certificate or a known CAR for initialization.
|
| |
| int | EAC_CTX_init_ca (EAC_CTX *ctx, int protocol, int curve) |
| | Initialize an EAC context for Chip Authentication.
|
| |
| int | EAC_CTX_init_ri (EAC_CTX *ctx, int protocol, int stnd_dp) |
| | Initialize an EAC context for Restricted Identification.
|
| |
| int | EAC_CTX_init_ef_cardaccess (unsigned const char *in, size_t in_len, EAC_CTX *ctx) |
| | Initialize an EAC context for PACE, TA and CA from the data given in an EF.CardAccess.
|
| |
| int | EAC_CTX_init_ef_cardsecurity (const unsigned char *ef_cardsecurity, size_t ef_cardsecurity_len, EAC_CTX *ctx) |
| | Initialize an EAC context for PACE, TA and CA from the data given in an EF.CardSecurity.
|
| |
| int | EAC_CTX_get_cvca_lookup (const EAC_CTX *ctx, CVC_lookup_cvca_cert *lookup_cvca_cert) |
| | Return the EAC context's CVCA lookup callback.
|
| |
| int | EAC_CTX_set_cvca_lookup (EAC_CTX *ctx, CVC_lookup_cvca_cert lookup_cvca_cert) |
| | Set the CVCA lookup callback.
|
| |
| CVC_lookup_cvca_cert | EAC_get_default_cvca_lookup (void) |
| | Return the default lookup of the country verifying CA.
|
| |
| void | EAC_set_cvc_default_dir (const char *default_dir) |
| | Set directory for EAC_get_default_cvca_lookup()
|
| |
| int | EAC_CTX_get_csca_lookup_cert (const EAC_CTX *ctx, X509_lookup_csca_cert *lookup_cvca_cert) |
| | Get the CSCA lookup callback.
|
| |
| int | EAC_CTX_set_csca_lookup_cert (EAC_CTX *ctx, X509_lookup_csca_cert lookup_cvca_cert) |
| | Set the CSCA lookup callback.
|
| |
| X509_lookup_csca_cert | EAC_get_default_csca_lookup (void) |
| | Return the default lookup of the country signing CA.
|
| |
| void | EAC_set_x509_default_dir (const char *default_dir) |
| | Set directory for EAC_get_default_csca_lookup()
|
| |
| BUF_MEM * | EAC_add_iso_pad (const EAC_CTX *ctx, const BUF_MEM *unpadded) |
| | Pad a buffer using ISO/IEC 9797-1 padding method 2.
|
| |
| BUF_MEM * | EAC_remove_iso_pad (const BUF_MEM *padded) |
| | Remove ISO/IEC 9797-1 padding method 2 from a message.
|
| |
| int | EAC_increment_ssc (const EAC_CTX *ctx) |
| | Increment the Send Sequence Counter.
|
| |
| int | EAC_reset_ssc (const EAC_CTX *ctx) |
| | Reset the Send Sequence Counter.
|
| |
| int | EAC_set_ssc (const EAC_CTX *ctx, unsigned long ssc) |
| | Set the Send Sequence Counter.
|
| |
| BUF_MEM * | EAC_encrypt (const EAC_CTX *ctx, const BUF_MEM *data) |
| | Encrypts data according to TR-03110 F.2.
|
| |
| BUF_MEM * | EAC_decrypt (const EAC_CTX *ctx, const BUF_MEM *data) |
| | Decrypt data according to TR-03110 F.2.
|
| |
| BUF_MEM * | EAC_authenticate (const EAC_CTX *ctx, const BUF_MEM *data) |
| | Authenticate data according to TR-03110 F.2.
|
| |
| int | EAC_verify_authentication (const EAC_CTX *ctx, const BUF_MEM *data, const BUF_MEM *mac) |
| | Verify authenticated data according to TR-03110 F.2.
|
| |
| BUF_MEM * | EAC_Comp (const EAC_CTX *ctx, int id, const BUF_MEM *pub) |
| | Compresse a public key according to TR-03110 Table A.2.
|
| |
| BUF_MEM * | EAC_hash_certificate_description (const unsigned char *cert_desc, size_t cert_desc_len) |
| | Compute the hash of a CV certificate description.
|
| |
| int | EAC_CTX_set_encryption_ctx (EAC_CTX *ctx, int id) |
| | Set the SM context for encryption, decryption and authentication.
|
| |
| int | EAC_CTX_print_private (BIO *out, const EAC_CTX *ctx, int indent) |
| | Print EAC context including private data.
|
| |
| int | BUF_MEM_print (BIO *out, const BUF_MEM *buf, int indent) |
| | Prints buffer.
|
| |
| void | BUF_MEM_clear_free (BUF_MEM *b) |
| | Frees and wipes a buffer.
|
| |