Lines Matching refs:type
72 if ((ctx->pk_info != NULL) && (ctx->pk_info->type != MBEDTLS_PK_OPAQUE)) { in mbedtls_pk_free()
161 psa_key_type_t type; in mbedtls_pk_setup_opaque() local
170 type = psa_get_key_type(&attributes); in mbedtls_pk_setup_opaque()
174 if (PSA_KEY_TYPE_IS_ECC_KEY_PAIR(type)) { in mbedtls_pk_setup_opaque()
178 if (type == PSA_KEY_TYPE_RSA_KEY_PAIR) { in mbedtls_pk_setup_opaque()
227 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type) in mbedtls_pk_can_do() argument
236 return ctx->pk_info->can_do(type); in mbedtls_pk_can_do()
279 mbedtls_pk_type_t type; in mbedtls_pk_can_do_ext() local
282 type = MBEDTLS_PK_ECKEY; in mbedtls_pk_can_do_ext()
285 type = MBEDTLS_PK_RSA; in mbedtls_pk_can_do_ext()
287 type = MBEDTLS_PK_RSASSA_PSS; in mbedtls_pk_can_do_ext()
292 if (ctx->pk_info->can_do(type) == 0) { in mbedtls_pk_can_do_ext()
296 switch (type) { in mbedtls_pk_can_do_ext()
1099 int mbedtls_pk_verify_ext(mbedtls_pk_type_t type, const void *options, in mbedtls_pk_verify_ext() argument
1112 if (!mbedtls_pk_can_do(ctx, type)) { in mbedtls_pk_verify_ext()
1116 if (type != MBEDTLS_PK_RSASSA_PSS) { in mbedtls_pk_verify_ext()
1432 if (prv->pk_info->type == MBEDTLS_PK_RSA_ALT) { in mbedtls_pk_check_pair()
1433 if (pub->pk_info->type != MBEDTLS_PK_RSA) { in mbedtls_pk_check_pair()
1437 if ((prv->pk_info->type != MBEDTLS_PK_OPAQUE) && in mbedtls_pk_check_pair()
1500 return ctx->pk_info->type; in mbedtls_pk_get_type()