/mbedtls-3.5.0/include/psa/ |
D | crypto_extra.h | 1177 const psa_pake_cipher_suite_t *cipher_suite); 1191 static void psa_pake_cs_set_algorithm(psa_pake_cipher_suite_t *cipher_suite, 1201 const psa_pake_cipher_suite_t *cipher_suite); 1212 static void psa_pake_cs_set_primitive(psa_pake_cipher_suite_t *cipher_suite, 1222 const psa_pake_cipher_suite_t *cipher_suite); 1231 const psa_pake_cipher_suite_t *cipher_suite); 1242 const psa_pake_cipher_suite_t *cipher_suite); 1260 static void psa_pake_cs_set_hash(psa_pake_cipher_suite_t *cipher_suite, 1423 psa_pake_cipher_suite_t *cipher_suite); 1496 const psa_pake_cipher_suite_t *cipher_suite); [all …]
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_psa_crypto_pake.function | 552 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 587 psa_pake_cs_set_algorithm(&cipher_suite, alg); 588 psa_pake_cs_set_primitive(&cipher_suite, primitive); 589 psa_pake_cs_set_hash(&cipher_suite, hash_alg); 613 SETUP_ALWAYS_CHECK_STEP(psa_pake_setup(&operation, &cipher_suite), 616 SETUP_CONDITIONAL_CHECK_STEP(psa_pake_setup(&operation, &cipher_suite), 732 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 750 psa_pake_cs_set_algorithm(&cipher_suite, alg); 751 psa_pake_cs_set_primitive(&cipher_suite, primitive_arg); 752 psa_pake_cs_set_hash(&cipher_suite, hash_alg); [all …]
|
D | test_suite_psa_crypto_driver_wrappers.function | 2994 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 3032 psa_pake_cs_set_algorithm(&cipher_suite, PSA_ALG_JPAKE); 3033 psa_pake_cs_set_primitive(&cipher_suite, primitive); 3034 psa_pake_cs_set_hash(&cipher_suite, PSA_ALG_SHA_256); 3040 TEST_EQUAL(psa_pake_setup(&operation, &cipher_suite), 3180 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 3210 psa_pake_cs_set_algorithm(&cipher_suite, alg); 3211 psa_pake_cs_set_primitive(&cipher_suite, primitive_arg); 3212 psa_pake_cs_set_hash(&cipher_suite, hash_alg); 3231 PSA_ASSERT(psa_pake_setup(&server, &cipher_suite)); [all …]
|
D | test_suite_psa_crypto.function | 40 psa_pake_cipher_suite_t *cipher_suite, 47 PSA_ASSERT(psa_pake_setup(operation, cipher_suite)); 9823 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 9853 psa_pake_cs_set_algorithm(&cipher_suite, alg); 9854 psa_pake_cs_set_primitive(&cipher_suite, primitive); 9855 psa_pake_cs_set_hash(&cipher_suite, hash_alg); 9882 status = psa_pake_setup(&operation, &cipher_suite); 9889 TEST_EQUAL(psa_pake_setup(&operation, &cipher_suite), 10047 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); 10063 psa_pake_cs_set_algorithm(&cipher_suite, alg); [all …]
|
/mbedtls-3.5.0/library/ |
D | psa_crypto_pake.c | 199 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); in mbedtls_psa_pake_setup() local 212 status = psa_crypto_driver_pake_get_cipher_suite(inputs, &cipher_suite); in mbedtls_psa_pake_setup() 229 operation->alg = cipher_suite.algorithm; in mbedtls_psa_pake_setup() 232 if (cipher_suite.algorithm == PSA_ALG_JPAKE) { in mbedtls_psa_pake_setup() 233 if (cipher_suite.type != PSA_PAKE_PRIMITIVE_TYPE_ECC || in mbedtls_psa_pake_setup() 234 cipher_suite.family != PSA_ECC_FAMILY_SECP_R1 || in mbedtls_psa_pake_setup() 235 cipher_suite.bits != 256 || in mbedtls_psa_pake_setup() 236 cipher_suite.hash != PSA_ALG_SHA_256) { in mbedtls_psa_pake_setup()
|
D | ssl_tls13_server.c | 36 unsigned int cipher_suite) in ssl_tls13_validate_peer_ciphersuite() argument 39 if (!mbedtls_ssl_tls13_cipher_suite_is_offered(ssl, cipher_suite)) { in ssl_tls13_validate_peer_ciphersuite() 43 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_tls13_validate_peer_ciphersuite() 397 uint16_t cipher_suite; in ssl_tls13_select_ciphersuite_for_psk() local 400 cipher_suite = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_select_ciphersuite_for_psk() 402 cipher_suite); in ssl_tls13_select_ciphersuite_for_psk() 411 *selected_ciphersuite = cipher_suite; in ssl_tls13_select_ciphersuite_for_psk() 434 uint16_t cipher_suite = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_select_ciphersuite_for_resumption() local 437 if (cipher_suite != session->ciphersuite) { in ssl_tls13_select_ciphersuite_for_resumption() 442 cipher_suite); in ssl_tls13_select_ciphersuite_for_resumption() [all …]
|
D | ssl_client.c | 346 int cipher_suite = ciphersuite_list[i]; in ssl_write_client_hello_cipher_suites() local 349 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_write_client_hello_cipher_suites() 364 (unsigned int) cipher_suite, in ssl_write_client_hello_cipher_suites() 369 MBEDTLS_PUT_UINT16_BE(cipher_suite, p, 0); in ssl_write_client_hello_cipher_suites()
|
D | ssl_tls13_client.c | 1618 uint16_t cipher_suite; in ssl_tls13_parse_server_hello() local 1685 cipher_suite = MBEDTLS_GET_UINT16_BE(p, 0); in ssl_tls13_parse_server_hello() 1689 ciphersuite_info = mbedtls_ssl_ciphersuite_from_id(cipher_suite); in ssl_tls13_parse_server_hello() 1696 !mbedtls_ssl_tls13_cipher_suite_is_offered(ssl, cipher_suite)) { in ssl_tls13_parse_server_hello() 1706 (cipher_suite != ssl->session_negotiate->ciphersuite)) { in ssl_tls13_parse_server_hello() 1712 cipher_suite)); in ssl_tls13_parse_server_hello() 1721 cipher_suite, ciphersuite_info->name)); in ssl_tls13_parse_server_hello()
|
D | psa_crypto.c | 7313 psa_pake_cipher_suite_t *cipher_suite) argument 7315 if (inputs->cipher_suite.algorithm == PSA_ALG_NONE) { 7319 *cipher_suite = inputs->cipher_suite; 7326 const psa_pake_cipher_suite_t *cipher_suite) argument 7335 if (PSA_ALG_IS_PAKE(cipher_suite->algorithm) == 0 || 7336 PSA_ALG_IS_HASH(cipher_suite->hash) == 0) { 7343 operation->alg = cipher_suite->algorithm; 7344 operation->data.inputs.cipher_suite = *cipher_suite;
|
D | ssl_misc.h | 2631 mbedtls_ssl_context *ssl, int cipher_suite) in mbedtls_ssl_tls13_cipher_suite_is_offered() argument 2637 if (ciphersuite_list[i] == cipher_suite) { in mbedtls_ssl_tls13_cipher_suite_is_offered()
|
D | ssl_tls.c | 1961 psa_pake_cipher_suite_t cipher_suite = psa_pake_cipher_suite_init(); in mbedtls_ssl_set_hs_ecjpake_password_common() local 1966 psa_pake_cs_set_algorithm(&cipher_suite, PSA_ALG_JPAKE); in mbedtls_ssl_set_hs_ecjpake_password_common() 1967 psa_pake_cs_set_primitive(&cipher_suite, in mbedtls_ssl_set_hs_ecjpake_password_common() 1971 psa_pake_cs_set_hash(&cipher_suite, PSA_ALG_SHA_256); in mbedtls_ssl_set_hs_ecjpake_password_common() 1973 status = psa_pake_setup(&ssl->handshake->psa_pake_ctx, &cipher_suite); in mbedtls_ssl_set_hs_ecjpake_password_common()
|
/mbedtls-3.5.0/docs/architecture/ |
D | tls13-support.md | 324 MBEDTLS_PUT_UINT16_BE( cipher_suite, cipher_suites_iter, 0 );
|
/mbedtls-3.5.0/docs/proposed/ |
D | psa-driver-interface.md | 326 … inputs are available for drivers via get-data functions for `password`, `role` and `cipher_suite`. 399 psa_pake_cipher_suite_t *cipher_suite);
|