Home
last modified time | relevance | path

Searched refs:pk_alg (Results 1 – 10 of 10) sorted by relevance

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Doid.c318 mbedtls_pk_type_t pk_alg; member
417 …dtls_oid_get_sig_alg, oid_sig_alg_t, sig_alg, mbedtls_md_type_t, md_alg, mbedtls_pk_type_t, pk_alg)
418 …s_oid_get_oid_by_sig_alg, oid_sig_alg_t, oid_sig_alg, mbedtls_pk_type_t, pk_alg, mbedtls_md_type_t…
426 mbedtls_pk_type_t pk_alg; member
449 FN_OID_TYPED_FROM_ASN1(oid_pk_alg_t, pk_alg, oid_pk_alg)
450 FN_OID_GET_ATTR1(mbedtls_oid_get_pk_alg, oid_pk_alg_t, pk_alg, mbedtls_pk_type_t, pk_alg)
451 …ET_OID_BY_ATTR1(mbedtls_oid_get_oid_by_pk_alg, oid_pk_alg_t, oid_pk_alg, mbedtls_pk_type_t, pk_alg)
A Dpkparse.c589 if( mbedtls_oid_get_pk_alg( &alg_oid, pk_alg ) != 0 ) in pk_get_pk_alg()
595 if( *pk_alg == MBEDTLS_PK_RSA && in pk_get_pk_alg()
616 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in mbedtls_pk_parse_subpubkey() local
642 if( ( pk_info = mbedtls_pk_info_from_type( pk_alg ) ) == NULL ) in mbedtls_pk_parse_subpubkey()
649 if( pk_alg == MBEDTLS_PK_RSA ) in mbedtls_pk_parse_subpubkey()
655 if( pk_alg == MBEDTLS_PK_ECKEY_DH || pk_alg == MBEDTLS_PK_ECKEY ) in mbedtls_pk_parse_subpubkey()
1009 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in pk_parse_key_pkcs8_unencrypted_der() local
1042 if( ( ret = pk_get_pk_alg( &p, end, &pk_alg, &params ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
1054 if( ( pk_info = mbedtls_pk_info_from_type( pk_alg ) ) == NULL ) in pk_parse_key_pkcs8_unencrypted_der()
1061 if( pk_alg == MBEDTLS_PK_RSA ) in pk_parse_key_pkcs8_unencrypted_der()
[all …]
A Dx509write_csr.c149 mbedtls_pk_type_t pk_alg; in x509write_csr_der_internal() local
244 pk_alg = MBEDTLS_PK_RSA; in x509write_csr_der_internal()
246 pk_alg = MBEDTLS_PK_ECDSA; in x509write_csr_der_internal()
250 if( ( ret = mbedtls_oid_get_oid_by_sig_alg( pk_alg, ctx->md_alg, in x509write_csr_der_internal()
A Dx509write_crt.c337 mbedtls_pk_type_t pk_alg; in mbedtls_x509write_crt_der() local
349 pk_alg = MBEDTLS_PK_RSA; in mbedtls_x509write_crt_der()
351 pk_alg = MBEDTLS_PK_ECDSA; in mbedtls_x509write_crt_der()
355 if( ( ret = mbedtls_oid_get_oid_by_sig_alg( pk_alg, ctx->md_alg, in mbedtls_x509write_crt_der()
A Dx509.c657 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg, in mbedtls_x509_get_sig_alg() argument
665 if( ( ret = mbedtls_oid_get_sig_alg( sig_oid, md_alg, pk_alg ) ) != 0 ) in mbedtls_x509_get_sig_alg()
669 if( *pk_alg == MBEDTLS_PK_RSASSA_PSS ) in mbedtls_x509_get_sig_alg()
845 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, in mbedtls_x509_sig_alg_gets() argument
861 if( pk_alg == MBEDTLS_PK_RSASSA_PSS ) in mbedtls_x509_sig_alg_gets()
878 ((void) pk_alg); in mbedtls_x509_sig_alg_gets()
A Dx509_crt.c177 mbedtls_pk_type_t pk_alg ) in x509_profile_check_pk_alg() argument
179 if( pk_alg == MBEDTLS_PK_NONE ) in x509_profile_check_pk_alg()
182 if( ( profile->allowed_pks & MBEDTLS_X509_ID_FLAG( pk_alg ) ) != 0 ) in x509_profile_check_pk_alg()
195 const mbedtls_pk_type_t pk_alg = mbedtls_pk_get_type( pk ); in x509_profile_check_key() local
198 if( pk_alg == MBEDTLS_PK_RSA || pk_alg == MBEDTLS_PK_RSASSA_PSS ) in x509_profile_check_key()
208 if( pk_alg == MBEDTLS_PK_ECDSA || in x509_profile_check_key()
209 pk_alg == MBEDTLS_PK_ECKEY || in x509_profile_check_key()
210 pk_alg == MBEDTLS_PK_ECKEY_DH ) in x509_profile_check_key()
A Dssl_cli.c2970 mbedtls_pk_type_t *pk_alg ) in ssl_parse_signature_algorithm() argument
2974 *pk_alg = MBEDTLS_PK_NONE; in ssl_parse_signature_algorithm()
2999 if( ( *pk_alg = mbedtls_ssl_pk_alg_from_sig( (*p)[1] ) ) in ssl_parse_signature_algorithm()
3307 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in ssl_parse_server_key_exchange() local
3321 &md_alg, &pk_alg ) != 0 ) in ssl_parse_server_key_exchange()
3332 if( pk_alg != in ssl_parse_server_key_exchange()
3350 pk_alg = mbedtls_ssl_get_ciphersuite_sig_pk_alg( ciphersuite_info ); in ssl_parse_server_key_exchange()
3353 if( pk_alg == MBEDTLS_PK_ECDSA && md_alg == MBEDTLS_MD_NONE ) in ssl_parse_server_key_exchange()
3442 if( !mbedtls_pk_can_do( peer_pk, pk_alg ) ) in ssl_parse_server_key_exchange()
A Dssl_srv.c953 mbedtls_pk_type_t pk_alg = in ssl_pick_cert() local
964 if( pk_alg == MBEDTLS_PK_NONE ) in ssl_pick_cert()
981 if( ! mbedtls_pk_can_do( &cur->cert->pk, pk_alg ) ) in ssl_pick_cert()
1004 if( pk_alg == MBEDTLS_PK_ECDSA && in ssl_pick_cert()
4485 mbedtls_pk_type_t pk_alg; in ssl_parse_certificate_verify() local
4606 if( ( pk_alg = mbedtls_ssl_pk_alg_from_sig( ssl->in_msg[i] ) ) in ssl_parse_certificate_verify()
4617 if( !mbedtls_pk_can_do( peer_pk, pk_alg ) ) in ssl_parse_certificate_verify()
/optee_os-3.20.0/lib/libmbedtls/mbedtls/include/mbedtls/
A Doid.h492 int mbedtls_oid_get_pk_alg( const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg );
503 int mbedtls_oid_get_oid_by_pk_alg( mbedtls_pk_type_t pk_alg,
541 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg );
563 int mbedtls_oid_get_oid_by_sig_alg( mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
A Dx509.h343 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg,
352 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,

Completed in 30 milliseconds