Lines Matching refs:pk_alg
580 mbedtls_pk_type_t *pk_alg, mbedtls_asn1_buf *params ) in pk_get_pk_alg() argument
590 if( mbedtls_oid_get_pk_alg( &alg_oid, pk_alg ) != 0 ) in pk_get_pk_alg()
596 if( *pk_alg == MBEDTLS_PK_RSA && in pk_get_pk_alg()
617 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in mbedtls_pk_parse_subpubkey() local
633 if( ( ret = pk_get_pk_alg( p, end, &pk_alg, &alg_params ) ) != 0 ) in mbedtls_pk_parse_subpubkey()
643 if( ( pk_info = mbedtls_pk_info_from_type( pk_alg ) ) == NULL ) in mbedtls_pk_parse_subpubkey()
650 if( pk_alg == MBEDTLS_PK_RSA ) in mbedtls_pk_parse_subpubkey()
656 if( pk_alg == MBEDTLS_PK_ECKEY_DH || pk_alg == MBEDTLS_PK_ECKEY ) in mbedtls_pk_parse_subpubkey()
1010 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in pk_parse_key_pkcs8_unencrypted_der() local
1048 if( ( ret = pk_get_pk_alg( &p, end, &pk_alg, ¶ms ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
1060 if( ( pk_info = mbedtls_pk_info_from_type( pk_alg ) ) == NULL ) in pk_parse_key_pkcs8_unencrypted_der()
1067 if( pk_alg == MBEDTLS_PK_RSA ) in pk_parse_key_pkcs8_unencrypted_der()
1077 if( pk_alg == MBEDTLS_PK_ECKEY || pk_alg == MBEDTLS_PK_ECKEY_DH ) in pk_parse_key_pkcs8_unencrypted_der()