Home
last modified time | relevance | path

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

/third_party/mbedtls/library/
Doid.c337 mbedtls_pk_type_t pk_alg; member
436 …dtls_oid_get_sig_alg, oid_sig_alg_t, sig_alg, mbedtls_md_type_t, md_alg, mbedtls_pk_type_t, pk_alg)
437 …s_oid_get_oid_by_sig_alg, oid_sig_alg_t, oid_sig_alg, mbedtls_pk_type_t, pk_alg, mbedtls_md_type_t…
445 mbedtls_pk_type_t pk_alg; member
468 FN_OID_TYPED_FROM_ASN1(oid_pk_alg_t, pk_alg, oid_pk_alg)
469 FN_OID_GET_ATTR1(mbedtls_oid_get_pk_alg, oid_pk_alg_t, pk_alg, mbedtls_pk_type_t, pk_alg)
470 …ET_OID_BY_ATTR1(mbedtls_oid_get_oid_by_pk_alg, oid_pk_alg_t, oid_pk_alg, mbedtls_pk_type_t, pk_alg)
Dpkparse.c580 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, &params ) ) != 0 ) in pk_parse_key_pkcs8_unencrypted_der()
[all …]
Dx509write_csr.c150 mbedtls_pk_type_t pk_alg; in x509write_csr_der_internal() local
246 pk_alg = MBEDTLS_PK_RSA; in x509write_csr_der_internal()
248 pk_alg = MBEDTLS_PK_ECDSA; in x509write_csr_der_internal()
252 if( ( ret = mbedtls_oid_get_oid_by_sig_alg( pk_alg, ctx->md_alg, in x509write_csr_der_internal()
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()
839 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg, in mbedtls_x509_sig_alg_gets() argument
855 if( pk_alg == MBEDTLS_PK_RSASSA_PSS ) in mbedtls_x509_sig_alg_gets()
872 ((void) pk_alg); in mbedtls_x509_sig_alg_gets()
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()
Dx509_crt.c201 mbedtls_pk_type_t pk_alg ) in x509_profile_check_pk_alg() argument
203 if( pk_alg == MBEDTLS_PK_NONE ) in x509_profile_check_pk_alg()
206 if( ( profile->allowed_pks & MBEDTLS_X509_ID_FLAG( pk_alg ) ) != 0 ) in x509_profile_check_pk_alg()
219 const mbedtls_pk_type_t pk_alg = mbedtls_pk_get_type( pk ); in x509_profile_check_key() local
222 if( pk_alg == MBEDTLS_PK_RSA || pk_alg == MBEDTLS_PK_RSASSA_PSS ) in x509_profile_check_key()
232 if( pk_alg == MBEDTLS_PK_ECDSA || in x509_profile_check_key()
233 pk_alg == MBEDTLS_PK_ECKEY || in x509_profile_check_key()
234 pk_alg == MBEDTLS_PK_ECKEY_DH ) in x509_profile_check_key()
Dssl_cli.c2759 mbedtls_pk_type_t *pk_alg ) in ssl_parse_signature_algorithm() argument
2763 *pk_alg = MBEDTLS_PK_NONE; in ssl_parse_signature_algorithm()
2788 if( ( *pk_alg = mbedtls_ssl_pk_alg_from_sig( (*p)[1] ) ) in ssl_parse_signature_algorithm()
3092 mbedtls_pk_type_t pk_alg = MBEDTLS_PK_NONE; in ssl_parse_server_key_exchange() local
3106 &md_alg, &pk_alg ) != 0 ) in ssl_parse_server_key_exchange()
3117 if( pk_alg != in ssl_parse_server_key_exchange()
3200 if( !mbedtls_pk_can_do( peer_pk, pk_alg ) ) in ssl_parse_server_key_exchange()
Dssl_srv.c912 mbedtls_pk_type_t pk_alg = in ssl_pick_cert() local
923 if( pk_alg == MBEDTLS_PK_NONE ) in ssl_pick_cert()
940 if( ! mbedtls_pk_can_do( &cur->cert->pk, pk_alg ) ) in ssl_pick_cert()
963 if( pk_alg == MBEDTLS_PK_ECDSA && in ssl_pick_cert()
4013 mbedtls_pk_type_t pk_alg; in ssl_parse_certificate_verify() local
4116 if( ( pk_alg = mbedtls_ssl_pk_alg_from_sig( ssl->in_msg[i] ) ) in ssl_parse_certificate_verify()
4127 if( !mbedtls_pk_can_do( peer_pk, pk_alg ) ) in ssl_parse_certificate_verify()
/third_party/mbedtls/include/mbedtls/
Doid.h484 int mbedtls_oid_get_pk_alg( const mbedtls_asn1_buf *oid, mbedtls_pk_type_t *pk_alg );
495 int mbedtls_oid_get_oid_by_pk_alg( mbedtls_pk_type_t pk_alg,
533 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg );
555 int mbedtls_oid_get_oid_by_sig_alg( mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
Dx509.h328 mbedtls_md_type_t *md_alg, mbedtls_pk_type_t *pk_alg,
338 mbedtls_pk_type_t pk_alg, mbedtls_md_type_t md_alg,
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function65 int pk_alg;
92 opts->pk_alg = MBEDTLS_PK_RSA;
764 int mbedtls_endpoint_certificate_init( mbedtls_endpoint *ep, int pk_alg )
794 if( pk_alg == MBEDTLS_PK_RSA )
823 if( pk_alg == MBEDTLS_PK_RSA )
874 * \p pk_alg the algorithm to use, currently only MBEDTLS_PK_RSA and
882 int mbedtls_endpoint_init( mbedtls_endpoint *ep, int endpoint_type, int pk_alg,
953 ret = mbedtls_endpoint_certificate_init( ep, pk_alg );
1705 options->pk_alg, &client_context,
1717 options->pk_alg, NULL, NULL,
[all …]