Home
last modified time | relevance | path

Searched refs:pk_info (Results 1 – 6 of 6) sorted by relevance

/optee_os/lib/libmbedtls/mbedtls/library/
H A Dpk.c43 ctx->pk_info = NULL; in mbedtls_pk_init()
65 if ((ctx->pk_info != NULL) && (ctx->pk_info->ctx_free_func != NULL)) { in mbedtls_pk_free()
66 ctx->pk_info->ctx_free_func(ctx->pk_ctx); in mbedtls_pk_free()
72 if ((ctx->pk_info != NULL) && (ctx->pk_info->type != MBEDTLS_PK_OPAQUE)) { in mbedtls_pk_free()
86 ctx->pk_info = NULL; in mbedtls_pk_restart_init()
95 if (ctx == NULL || ctx->pk_info == NULL || in mbedtls_pk_restart_free()
96 ctx->pk_info->rs_free_func == NULL) { in mbedtls_pk_restart_free()
100 ctx->pk_info->rs_free_func(ctx->rs_ctx); in mbedtls_pk_restart_free()
102 ctx->pk_info = NULL; in mbedtls_pk_restart_free()
138 if (info == NULL || ctx->pk_info != NULL) { in mbedtls_pk_setup()
[all …]
H A Dpkparse.c525 const mbedtls_pk_info_t *pk_info; in mbedtls_pk_parse_subpubkey() local
547 if ((pk_info = mbedtls_pk_info_from_type(pk_alg)) == NULL) { in mbedtls_pk_parse_subpubkey()
551 if ((ret = mbedtls_pk_setup(pk, pk_info)) != 0) { in mbedtls_pk_parse_subpubkey()
754 const mbedtls_pk_info_t *pk_info; in pk_parse_key_pkcs8_unencrypted_der() local
805 if ((pk_info = mbedtls_pk_info_from_type(pk_alg)) == NULL) { in pk_parse_key_pkcs8_unencrypted_der()
809 if ((ret = mbedtls_pk_setup(pk, pk_info)) != 0) { in pk_parse_key_pkcs8_unencrypted_der()
979 const mbedtls_pk_info_t *pk_info; in mbedtls_pk_parse_key() local
1003 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_RSA); in mbedtls_pk_parse_key()
1004 if ((ret = mbedtls_pk_setup(pk, pk_info)) != 0 || in mbedtls_pk_parse_key()
1032 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_ECKEY); in mbedtls_pk_parse_key()
[all …]
/optee_os/lib/libmbedtls/core/
H A Drsa.c479 const mbedtls_pk_info_t *pk_info = NULL; in sw_crypto_acipher_rsaes_decrypt() local
482 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_RSA); in sw_crypto_acipher_rsaes_decrypt()
483 if (!pk_info) { in sw_crypto_acipher_rsaes_decrypt()
488 res = mbedtls_pk_setup(&ctx, pk_info); in sw_crypto_acipher_rsaes_decrypt()
538 lmd_res = pk_info->decrypt_func(&ctx, src, src_len, buf, &blen, in sw_crypto_acipher_rsaes_decrypt()
585 const mbedtls_pk_info_t *pk_info = NULL; in sw_crypto_acipher_rsaes_encrypt() local
590 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_RSA); in sw_crypto_acipher_rsaes_encrypt()
591 if (!pk_info) { in sw_crypto_acipher_rsaes_encrypt()
596 res = mbedtls_pk_setup(&ctx, pk_info); in sw_crypto_acipher_rsaes_encrypt()
636 lmd_res = pk_info->encrypt_func(&ctx, src, src_len, dst, dst_len, in sw_crypto_acipher_rsaes_encrypt()
[all …]
H A Decc.c170 const mbedtls_pk_info_t *pk_info = NULL; in ecc_sign() local
211 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_ECDSA); in ecc_sign()
212 if (pk_info == NULL) { in ecc_sign()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dpk.h221 const mbedtls_pk_info_t *MBEDTLS_PRIVATE(pk_info); /**< Public key information */
272 const mbedtls_pk_info_t *MBEDTLS_PRIVATE(pk_info); /**< Public key information */
/optee_os/ta/pkcs11/src/
H A Dpkcs11_attributes.c2710 const mbedtls_pk_info_t *pk_info = NULL; in encode_rsa_private_key_der() local
2713 pk_info = mbedtls_pk_info_from_type(MBEDTLS_PK_RSA); in encode_rsa_private_key_der()
2714 if (mbedtls_pk_setup(&pk, pk_info)) { in encode_rsa_private_key_der()