|
int | mbedtls_pk_load_file (const char *path, unsigned char **buf, size_t *n) |
|
int | mbedtls_pk_parse_keyfile (mbedtls_pk_context *ctx, const char *path, const char *pwd) |
| Load and parse a private key. More...
|
|
int | mbedtls_pk_parse_public_keyfile (mbedtls_pk_context *ctx, const char *path) |
| Load and parse a public key. More...
|
|
static int | pk_get_ecparams (unsigned char **p, const unsigned char *end, mbedtls_asn1_buf *params) |
|
static int | pk_group_from_specified (const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp) |
|
static int | pk_group_id_from_group (const mbedtls_ecp_group *grp, mbedtls_ecp_group_id *grp_id) |
|
static int | pk_group_id_from_specified (const mbedtls_asn1_buf *params, mbedtls_ecp_group_id *grp_id) |
|
static int | pk_use_ecparams (const mbedtls_asn1_buf *params, mbedtls_ecp_group *grp) |
|
static int | pk_get_ecpubkey (unsigned char **p, const unsigned char *end, mbedtls_ecp_keypair *key) |
|
static int | pk_get_rsapubkey (unsigned char **p, const unsigned char *end, mbedtls_rsa_context *rsa) |
|
static int | pk_get_pk_alg (unsigned char **p, const unsigned char *end, mbedtls_pk_type_t *pk_alg, mbedtls_asn1_buf *params) |
|
int | mbedtls_pk_parse_subpubkey (unsigned char **p, const unsigned char *end, mbedtls_pk_context *pk) |
| Parse a SubjectPublicKeyInfo DER structure. More...
|
|
static int | pk_parse_key_pkcs1_der (mbedtls_rsa_context *rsa, const unsigned char *key, size_t keylen) |
|
static int | pk_parse_key_sec1_der (mbedtls_ecp_keypair *eck, const unsigned char *key, size_t keylen) |
|
static int | pk_parse_key_pkcs8_unencrypted_der (mbedtls_pk_context *pk, const unsigned char *key, size_t keylen) |
|
static int | pk_parse_key_pkcs8_encrypted_der (mbedtls_pk_context *pk, const unsigned char *key, size_t keylen, const unsigned char *pwd, size_t pwdlen) |
|
int | mbedtls_pk_parse_key (mbedtls_pk_context *pk, const unsigned char *key, size_t keylen, const unsigned char *pwd, size_t pwdlen) |
| Parse a private key in PEM or DER format. More...
|
|
int | mbedtls_pk_parse_public_key (mbedtls_pk_context *ctx, const unsigned char *key, size_t keylen) |
| Parse a public key in PEM or DER format. More...
|
|