/mbedtls-3.4.0/include/psa/ |
D | crypto_extra.h | 1174 const psa_pake_cipher_suite_t *cipher_suite ); 1188 static void psa_pake_cs_set_algorithm( psa_pake_cipher_suite_t *cipher_suite, 1198 const psa_pake_cipher_suite_t *cipher_suite ); 1209 static void psa_pake_cs_set_primitive( psa_pake_cipher_suite_t *cipher_suite, 1219 const psa_pake_cipher_suite_t *cipher_suite ); 1228 const psa_pake_cipher_suite_t *cipher_suite ); 1239 const psa_pake_cipher_suite_t *cipher_suite ); 1257 static void psa_pake_cs_set_hash( psa_pake_cipher_suite_t *cipher_suite, 1365 const psa_pake_cipher_suite_t *cipher_suite ); 1849 const psa_pake_cipher_suite_t *cipher_suite ) in psa_pake_cs_get_algorithm() argument [all …]
|
/mbedtls-3.4.0/library/ |
D | psa_crypto_pake.c | 198 const psa_pake_cipher_suite_t *cipher_suite) in psa_pake_setup() argument 209 if( cipher_suite == NULL || in psa_pake_setup() 210 PSA_ALG_IS_PAKE(cipher_suite->algorithm ) == 0 || in psa_pake_setup() 211 ( cipher_suite->type != PSA_PAKE_PRIMITIVE_TYPE_ECC && in psa_pake_setup() 212 cipher_suite->type != PSA_PAKE_PRIMITIVE_TYPE_DH ) || in psa_pake_setup() 213 PSA_ALG_IS_HASH( cipher_suite->hash ) == 0 ) in psa_pake_setup() 220 if( cipher_suite->algorithm == PSA_ALG_JPAKE ) in psa_pake_setup() 222 if( cipher_suite->type != PSA_PAKE_PRIMITIVE_TYPE_ECC || in psa_pake_setup() 223 cipher_suite->family != PSA_ECC_FAMILY_SECP_R1 || in psa_pake_setup() 224 cipher_suite->bits != 256 || in psa_pake_setup() [all …]
|
D | ssl_tls13_server.c | 46 unsigned int cipher_suite ) in ssl_tls13_validate_peer_ciphersuite() argument 49 if( ! mbedtls_ssl_tls13_cipher_suite_is_offered( ssl, cipher_suite ) ) in ssl_tls13_validate_peer_ciphersuite() 52 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in ssl_tls13_validate_peer_ciphersuite() 386 uint16_t cipher_suite; in ssl_tls13_select_ciphersuite_for_psk() local 389 cipher_suite = MBEDTLS_GET_UINT16_BE( p, 0 ); in ssl_tls13_select_ciphersuite_for_psk() 391 cipher_suite ); in ssl_tls13_select_ciphersuite_for_psk() 400 *selected_ciphersuite = cipher_suite; in ssl_tls13_select_ciphersuite_for_psk() 424 uint16_t cipher_suite = MBEDTLS_GET_UINT16_BE( p, 0 ); in ssl_tls13_select_ciphersuite_for_resumption() local 427 if( cipher_suite != session->ciphersuite ) in ssl_tls13_select_ciphersuite_for_resumption() 431 cipher_suite ); in ssl_tls13_select_ciphersuite_for_resumption() [all …]
|
D | ssl_client.c | 351 int cipher_suite = ciphersuite_list[i]; in ssl_write_client_hello_cipher_suites() local 354 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in ssl_write_client_hello_cipher_suites() 368 (unsigned int) cipher_suite, in ssl_write_client_hello_cipher_suites() 373 MBEDTLS_PUT_UINT16_BE( cipher_suite, p, 0 ); in ssl_write_client_hello_cipher_suites()
|
D | ssl_tls13_client.c | 1541 uint16_t cipher_suite; in ssl_tls13_parse_server_hello() local 1611 cipher_suite = MBEDTLS_GET_UINT16_BE( p, 0 ); in ssl_tls13_parse_server_hello() 1615 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in ssl_tls13_parse_server_hello() 1622 !mbedtls_ssl_tls13_cipher_suite_is_offered( ssl, cipher_suite ) ) in ssl_tls13_parse_server_hello() 1633 ( cipher_suite != ssl->session_negotiate->ciphersuite ) ) in ssl_tls13_parse_server_hello() 1641 cipher_suite ) ); in ssl_tls13_parse_server_hello() 1649 ssl->session_negotiate->ciphersuite = cipher_suite; in ssl_tls13_parse_server_hello() 1652 cipher_suite, ciphersuite_info->name ) ); in ssl_tls13_parse_server_hello()
|
D | ssl_tls13_generic.c | 1427 uint16_t cipher_suite = ssl->session_negotiate->ciphersuite; in mbedtls_ssl_reset_transcript_for_hrr() local 1428 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id( cipher_suite ); in mbedtls_ssl_reset_transcript_for_hrr()
|
D | ssl_misc.h | 2576 mbedtls_ssl_context *ssl, int cipher_suite ) in mbedtls_ssl_tls13_cipher_suite_is_offered() argument 2583 if( ciphersuite_list[i] == cipher_suite ) in mbedtls_ssl_tls13_cipher_suite_is_offered()
|
D | ssl_tls.c | 1874 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); in mbedtls_ssl_set_hs_ecjpake_password() local 1900 psa_pake_cs_set_algorithm( &cipher_suite, PSA_ALG_JPAKE ); in mbedtls_ssl_set_hs_ecjpake_password() 1901 psa_pake_cs_set_primitive( &cipher_suite, in mbedtls_ssl_set_hs_ecjpake_password() 1905 psa_pake_cs_set_hash( &cipher_suite, PSA_ALG_SHA_256 ); in mbedtls_ssl_set_hs_ecjpake_password() 1907 status = psa_pake_setup( &ssl->handshake->psa_pake_ctx, &cipher_suite ); in mbedtls_ssl_set_hs_ecjpake_password()
|
/mbedtls-3.4.0/tests/suites/ |
D | test_suite_psa_crypto_pake.function | 552 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 584 psa_pake_cs_set_algorithm( &cipher_suite, alg ); 585 psa_pake_cs_set_primitive( &cipher_suite, primitive ); 586 psa_pake_cs_set_hash( &cipher_suite, hash_alg ); 611 SETUP_ALWAYS_CHECK_STEP( psa_pake_setup( &operation, &cipher_suite ), 614 SETUP_CONDITIONAL_CHECK_STEP( psa_pake_setup( &operation, &cipher_suite ), 726 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 743 psa_pake_cs_set_algorithm( &cipher_suite, alg ); 744 psa_pake_cs_set_primitive( &cipher_suite, primitive_arg ); 745 psa_pake_cs_set_hash( &cipher_suite, hash_alg ); [all …]
|
D | test_suite_psa_crypto.function | 37 psa_pake_cipher_suite_t *cipher_suite, 44 PSA_ASSERT( psa_pake_setup( operation, cipher_suite ) ); 8779 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 8810 psa_pake_cs_set_algorithm( &cipher_suite, alg ); 8811 psa_pake_cs_set_primitive( &cipher_suite, primitive ); 8812 psa_pake_cs_set_hash( &cipher_suite, hash_alg ); 8840 status = psa_pake_setup( &operation, &cipher_suite ); 8849 TEST_EQUAL( psa_pake_setup( &operation, &cipher_suite ), 9027 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 9043 psa_pake_cs_set_algorithm( &cipher_suite, alg ); [all …]
|
/mbedtls-3.4.0/docs/architecture/ |
D | tls13-support.md | 324 MBEDTLS_PUT_UINT16_BE( cipher_suite, cipher_suites_iter, 0 );
|