| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | pk.h | 220 typedef struct mbedtls_pk_context { struct 265 } mbedtls_pk_context; typedef 310 void mbedtls_pk_init(mbedtls_pk_context *ctx); 323 void mbedtls_pk_free(mbedtls_pk_context *ctx); 358 int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info); 397 int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx, 417 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key, 430 size_t mbedtls_pk_get_bitlen(const mbedtls_pk_context *ctx); 439 static inline size_t mbedtls_pk_get_len(const mbedtls_pk_context *ctx) in mbedtls_pk_get_len() 456 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type); [all …]
|
| H A D | x509_csr.h | 47 mbedtls_pk_context pk; /**< Container for the public key context. */ 67 mbedtls_pk_context *MBEDTLS_PRIVATE(key); 252 void mbedtls_x509write_csr_set_key(mbedtls_x509write_csr *ctx, mbedtls_pk_context *key);
|
| H A D | x509_crt.h | 61 mbedtls_pk_context pk; /**< Container for the public key context. */ 221 mbedtls_pk_context *MBEDTLS_PRIVATE(subject_key); 222 mbedtls_pk_context *MBEDTLS_PRIVATE(issuer_key); 1042 void mbedtls_x509write_crt_set_subject_key(mbedtls_x509write_cert *ctx, mbedtls_pk_context *key); 1050 void mbedtls_x509write_crt_set_issuer_key(mbedtls_x509write_cert *ctx, mbedtls_pk_context *key);
|
| H A D | ssl.h | 3707 mbedtls_pk_context *pk_key); 4154 mbedtls_pk_context *pk_key);
|
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | pk_wrap.h | 30 size_t (*get_bitlen)(mbedtls_pk_context *pk); 36 int (*verify_func)(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, 41 int (*sign_func)(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, 49 int (*verify_rs_func)(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, 55 int (*sign_rs_func)(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, 63 int (*decrypt_func)(mbedtls_pk_context *pk, const unsigned char *input, size_t ilen, 69 int (*encrypt_func)(mbedtls_pk_context *pk, const unsigned char *input, size_t ilen, 75 int (*check_pair_func)(mbedtls_pk_context *pub, mbedtls_pk_context *prv, 94 void (*debug_func)(mbedtls_pk_context *pk, mbedtls_pk_debug_item *items);
|
| H A D | pk_internal.h | 60 static inline const mbedtls_ecp_keypair *mbedtls_pk_ec_ro(const mbedtls_pk_context pk) in mbedtls_pk_ec_ro() 72 static inline mbedtls_ecp_keypair *mbedtls_pk_ec_rw(const mbedtls_pk_context pk) in mbedtls_pk_ec_rw() 86 static inline mbedtls_ecp_group_id mbedtls_pk_get_ec_group_id(const mbedtls_pk_context *pk) in mbedtls_pk_get_ec_group_id() 124 static inline int mbedtls_pk_is_rfc8410(const mbedtls_pk_context *pk) in mbedtls_pk_is_rfc8410() 138 int mbedtls_pk_ecc_set_group(mbedtls_pk_context *pk, mbedtls_ecp_group_id grp_id); 147 int mbedtls_pk_ecc_set_key(mbedtls_pk_context *pk, unsigned char *key, size_t key_len); 162 int mbedtls_pk_ecc_set_pubkey(mbedtls_pk_context *pk, const unsigned char *pub, size_t pub_len); 183 int mbedtls_pk_ecc_set_pubkey_from_prv(mbedtls_pk_context *pk, 197 mbedtls_pk_context *pk,
|
| H A D | pk_wrap.c | 58 static size_t rsa_get_bitlen(mbedtls_pk_context *pk) in rsa_get_bitlen() 65 static int rsa_verify_wrap(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, in rsa_verify_wrap() 130 static int rsa_verify_wrap(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, in rsa_verify_wrap() 230 static int rsa_sign_wrap(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, in rsa_sign_wrap() 254 static int rsa_sign_wrap(mbedtls_pk_context *pk, mbedtls_md_type_t md_alg, in rsa_sign_wrap() 279 static int rsa_decrypt_wrap(mbedtls_pk_context *pk, in rsa_decrypt_wrap() 345 static int rsa_decrypt_wrap(mbedtls_pk_context *pk, in rsa_decrypt_wrap() 362 static int rsa_encrypt_wrap(mbedtls_pk_context *pk, in rsa_encrypt_wrap() 427 static int rsa_encrypt_wrap(mbedtls_pk_context *pk, in rsa_encrypt_wrap() 444 static int rsa_check_pair_wrap(mbedtls_pk_context *pub, mbedtls_pk_context *prv, in rsa_check_pair_wrap() [all …]
|
| H A D | pk.c | 41 void mbedtls_pk_init(mbedtls_pk_context *ctx) in mbedtls_pk_init() 59 void mbedtls_pk_free(mbedtls_pk_context *ctx) in mbedtls_pk_free() 77 mbedtls_platform_zeroize(ctx, sizeof(mbedtls_pk_context)); in mbedtls_pk_free() 136 int mbedtls_pk_setup(mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info) in mbedtls_pk_setup() 156 int mbedtls_pk_setup_opaque(mbedtls_pk_context *ctx, in mbedtls_pk_setup_opaque() 195 int mbedtls_pk_setup_rsa_alt(mbedtls_pk_context *ctx, void *key, in mbedtls_pk_setup_rsa_alt() 227 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type) in mbedtls_pk_can_do() 243 int mbedtls_pk_can_do_ext(const mbedtls_pk_context *ctx, psa_algorithm_t alg, in mbedtls_pk_can_do_ext() 400 int mbedtls_pk_get_psa_attributes(const mbedtls_pk_context *pk, in mbedtls_pk_get_psa_attributes() 641 static int import_pair_into_psa(const mbedtls_pk_context *pk, in import_pair_into_psa() [all …]
|
| H A D | pkwrite.c | 63 const mbedtls_pk_context *pk) in pk_write_rsa_der() 95 const mbedtls_pk_context *pk) in pk_write_ec_pubkey() 120 const mbedtls_pk_context *pk) in pk_write_ec_pubkey() 165 const mbedtls_pk_context *pk) in pk_write_ec_private() 193 const mbedtls_pk_context *pk) in pk_write_ec_private() 264 const mbedtls_pk_context *pk) in pk_write_ec_rfc8410_der() 307 const mbedtls_pk_context *pk) in pk_write_ec_der() 361 const mbedtls_pk_context *pk) in pk_write_opaque_pubkey() 389 static mbedtls_pk_type_t pk_get_type_ext(const mbedtls_pk_context *pk) in pk_get_type_ext() 420 const mbedtls_pk_context *key) in mbedtls_pk_write_pubkey() [all …]
|
| H A D | pk_ecc.c | 17 int mbedtls_pk_ecc_set_group(mbedtls_pk_context *pk, mbedtls_ecp_group_id grp_id) in mbedtls_pk_ecc_set_group() 48 int mbedtls_pk_ecc_set_key(mbedtls_pk_context *pk, unsigned char *key, size_t key_len) in mbedtls_pk_ecc_set_key() 84 int mbedtls_pk_ecc_set_pubkey_from_prv(mbedtls_pk_context *pk, in mbedtls_pk_ecc_set_pubkey_from_prv() 166 static int pk_ecc_set_pubkey_psa_ecp_fallback(mbedtls_pk_context *pk, in pk_ecc_set_pubkey_psa_ecp_fallback() 204 int mbedtls_pk_ecc_set_pubkey(mbedtls_pk_context *pk, const unsigned char *pub, size_t pub_len) in mbedtls_pk_ecc_set_pubkey()
|
| H A D | pkparse.c | 389 static int pk_use_ecparams(const mbedtls_asn1_buf *params, mbedtls_pk_context *pk) in pk_use_ecparams() 415 mbedtls_pk_context *pk) in pk_use_ecparams_rfc8410() 429 static int pk_parse_key_rfc8410_der(mbedtls_pk_context *pk, in pk_parse_key_rfc8410_der() 518 mbedtls_pk_context *pk) in mbedtls_pk_parse_subpubkey() 604 static int pk_parse_key_sec1_der(mbedtls_pk_context *pk, in pk_parse_key_sec1_der() 743 mbedtls_pk_context *pk, in pk_parse_key_pkcs8_unencrypted_der() 866 mbedtls_pk_context *pk, in mbedtls_pk_parse_key_pkcs8_encrypted_der() 973 int mbedtls_pk_parse_key(mbedtls_pk_context *pk, in mbedtls_pk_parse_key() 1180 int mbedtls_pk_parse_public_key(mbedtls_pk_context *ctx, in mbedtls_pk_parse_public_key() 1347 int mbedtls_pk_parse_keyfile(mbedtls_pk_context *ctx, in mbedtls_pk_parse_keyfile() [all …]
|
| H A D | debug.c | 235 const char *text, const mbedtls_pk_context *pk) in mbedtls_debug_print_psa_ec() 318 const char *text, const mbedtls_pk_context *pk) in debug_print_pk()
|
| H A D | ssl_misc.h | 841 mbedtls_pk_context peer_pubkey; /*!< The public key from the peer. */ 1254 mbedtls_pk_context *key; /*!< private key */ 1587 unsigned char mbedtls_ssl_sig_from_pk(mbedtls_pk_context *pk); 1673 static inline mbedtls_pk_context *mbedtls_ssl_own_key(mbedtls_ssl_context *ssl) in mbedtls_ssl_own_key() 2533 mbedtls_pk_context *key);
|
| H A D | x509write_crt.c | 73 mbedtls_pk_context *key) in mbedtls_x509write_crt_set_subject_key() 79 mbedtls_pk_context *key) in mbedtls_x509write_crt_set_issuer_key()
|
| H A D | x509write_csr.c | 61 void mbedtls_x509write_csr_set_key(mbedtls_x509write_csr *ctx, mbedtls_pk_context *key) in mbedtls_x509write_csr_set_key()
|
| H A D | ssl_tls12_server.c | 663 static int ssl_check_key_curve(mbedtls_pk_context *pk, in ssl_check_key_curve() 2573 mbedtls_pk_context *pk; in ssl_get_ecdh_params_from_cert() 2720 const mbedtls_pk_context *private_key = mbedtls_ssl_own_key(ssl); in ssl_get_ecdh_params_from_cert() 3432 mbedtls_pk_context *public_key = &own_cert->pk; in ssl_decrypt_encrypted_pms() 3433 mbedtls_pk_context *private_key = mbedtls_ssl_own_key(ssl); in ssl_decrypt_encrypted_pms() 4093 mbedtls_pk_context *peer_pk; in ssl_parse_certificate_verify()
|
| H A D | ssl_tls13_generic.c | 855 mbedtls_pk_context *key) in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() 906 mbedtls_pk_context *own_key; in ssl_tls13_write_certificate_verify_body()
|
| H A D | pkcs7.c | 650 mbedtls_pk_context pk_cxt = cert->pk; in mbedtls_pkcs7_data_or_hash_verify()
|
| H A D | ssl_tls12_client.c | 1919 mbedtls_pk_context *peer_pk; in ssl_write_encrypted_pms() 1991 mbedtls_pk_context *peer_pk; in ssl_get_ecdh_params_from_cert() 2305 mbedtls_pk_context *peer_pk; in ssl_parse_server_key_exchange()
|
| H A D | ssl_tls.c | 1839 mbedtls_pk_context *key) in ssl_append_key_cert() 1875 mbedtls_pk_context *pk_key) in mbedtls_ssl_conf_own_cert() 1921 mbedtls_pk_context *pk_key) in mbedtls_ssl_set_hs_own_cert() 6158 unsigned char mbedtls_ssl_sig_from_pk(mbedtls_pk_context *pk) in mbedtls_ssl_sig_from_pk()
|
| H A D | x509_crt.c | 210 const mbedtls_pk_context *pk) in x509_profile_check_key()
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | rsa.c | 180 static void mbd_pk_free(mbedtls_pk_context *ctx, struct rsa_keypair *key) in mbd_pk_free() 477 mbedtls_pk_context ctx = { }; in sw_crypto_acipher_rsaes_decrypt() 583 mbedtls_pk_context ctx = { }; in sw_crypto_acipher_rsaes_encrypt() 668 mbedtls_pk_context ctx = { }; in sw_crypto_acipher_rsassa_sign() 773 mbedtls_pk_context ctx = { }; in sw_crypto_acipher_rsassa_verify()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | pkcs11_attributes.c | 2510 mbedtls_pk_context pk = { }; in set_private_key_data_rsa() 2708 mbedtls_pk_context pk = { }; in encode_rsa_private_key_der()
|