Home
last modified time | relevance | path

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

/openthread-latest/third_party/mbedtls/repo/library/
Dssl_tls13_client.c725 size_t *psk_len) in ssl_tls13_ticket_get_psk() argument
736 *psk_len = session->resumption_key_len; in ssl_tls13_ticket_get_psk()
763 size_t *psk_len) in ssl_tls13_psk_get_psk() argument
772 *psk_len = ssl->conf->psk_len; in ssl_tls13_psk_get_psk()
829 size_t psk_len, in ssl_tls13_write_binder() argument
858 psk, psk_len, psk_type, in ssl_tls13_write_binder()
1005 size_t psk_len; in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext() local
1015 if (ssl_tls13_ticket_get_psk(ssl, &hash_alg, &psk, &psk_len) == 0) { in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1019 hash_alg, psk, psk_len, in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
1028 if (ssl_tls13_psk_get_psk(ssl, &hash_alg, &psk, &psk_len) == 0) { in mbedtls_ssl_tls13_write_binders_of_pre_shared_key_ext()
[all …]
Dssl_tls13_keys.c836 unsigned char const *psk, size_t psk_len, in mbedtls_ssl_tls13_create_psk_binder() argument
871 psk, psk_len, /* Input */ in mbedtls_ssl_tls13_create_psk_binder()
1282 size_t psk_len = 0; in mbedtls_ssl_tls13_key_schedule_stage_early() local
1292 ret = mbedtls_ssl_tls13_export_handshake_psk(ssl, &psk, &psk_len); in mbedtls_ssl_tls13_key_schedule_stage_early()
1301 ret = mbedtls_ssl_tls13_evolve_secret(hash_alg, NULL, psk, psk_len, in mbedtls_ssl_tls13_key_schedule_stage_early()
1842 size_t *psk_len) in mbedtls_ssl_tls13_export_handshake_psk() argument
1848 *psk_len = 0; in mbedtls_ssl_tls13_export_handshake_psk()
1860 *psk_len = PSA_BITS_TO_BYTES(psa_get_key_bits(&key_attributes)); in mbedtls_ssl_tls13_export_handshake_psk()
1861 *psk = mbedtls_calloc(1, *psk_len); in mbedtls_ssl_tls13_export_handshake_psk()
1867 (uint8_t *) *psk, *psk_len, psk_len); in mbedtls_ssl_tls13_export_handshake_psk()
[all …]
Dssl_tls13_keys.h482 unsigned char const *psk, size_t psk_len,
646 size_t *psk_len);
Dssl_misc.h817 size_t psk_len; /*!< Length of PSK from callback */ member
1543 const unsigned char **psk, size_t *psk_len) in mbedtls_ssl_get_psk() argument
1545 if (ssl->handshake->psk != NULL && ssl->handshake->psk_len > 0) { in mbedtls_ssl_get_psk()
1547 *psk_len = ssl->handshake->psk_len; in mbedtls_ssl_get_psk()
1548 } else if (ssl->conf->psk != NULL && ssl->conf->psk_len > 0) { in mbedtls_ssl_get_psk()
1550 *psk_len = ssl->conf->psk_len; in mbedtls_ssl_get_psk()
1553 *psk_len = 0; in mbedtls_ssl_get_psk()
Dssl_tls.c2124 if (conf->psk != NULL && conf->psk_len != 0) { in mbedtls_ssl_conf_has_static_psk()
2142 mbedtls_zeroize_and_free(conf->psk, conf->psk_len); in ssl_conf_remove_psk()
2144 conf->psk_len = 0; in ssl_conf_remove_psk()
2184 const unsigned char *psk, size_t psk_len, in mbedtls_ssl_conf_psk() argument
2198 if (psk_len == 0) { in mbedtls_ssl_conf_psk()
2201 if (psk_len > MBEDTLS_PSK_MAX_LEN) { in mbedtls_ssl_conf_psk()
2205 if ((conf->psk = mbedtls_calloc(1, psk_len)) == NULL) { in mbedtls_ssl_conf_psk()
2208 conf->psk_len = psk_len; in mbedtls_ssl_conf_psk()
2209 memcpy(conf->psk, psk, conf->psk_len); in mbedtls_ssl_conf_psk()
2235 ssl->handshake->psk_len); in ssl_remove_psk()
[all …]
Dssl_tls13_server.c384 ret = mbedtls_ssl_set_hs_psk(ssl, ssl->conf->psk, ssl->conf->psk_len); in ssl_tls13_offered_psks_check_identity_match()
414 size_t psk_len; in ssl_tls13_offered_psks_check_binder_match() local
429 ret = mbedtls_ssl_tls13_export_handshake_psk(ssl, &psk, &psk_len); in ssl_tls13_offered_psks_check_binder_match()
435 psk, psk_len, psk_type, in ssl_tls13_offered_psks_check_binder_match()
Dssl_tls12_server.c98 if (conf->psk != NULL && conf->psk_len != 0) { in ssl_conf_has_psk_or_cb()
/openthread-latest/third_party/mbedtls/repo/include/mbedtls/
Dssl.h1598 size_t MBEDTLS_PRIVATE(psk_len); /*!< The length of the raw pre-shared key.
3631 const unsigned char *psk, size_t psk_len,
3695 const unsigned char *psk, size_t psk_len);
/openthread-latest/third_party/mbedtls/repo/programs/ssl/
Dssl_client2.c789 size_t psk_len = 0; in main() local
1469 opt.psk, &psk_len) != 0) { in main()
1993 status = psa_import_key(&key_attributes, psk, psk_len, &slot); in main()
2008 if (psk_len > 0) { in main()
2009 ret = mbedtls_ssl_conf_psk(&conf, psk, psk_len, in main()
Dssl_server2.c1313 size_t psk_len) in psa_setup_psk_key_slot() argument
1323 status = psa_import_key(&key_attributes, psk, psk_len, slot); in psa_setup_psk_key_slot()
1520 size_t psk_len = 0; in main() local
2445 opt.psk, &psk_len) != 0) { in main()
3183 status = psa_setup_psk_key_slot(&psk_slot, alg, psk, psk_len); in main()
3198 if (psk_len > 0) { in main()
3199 ret = mbedtls_ssl_conf_psk(&conf, psk, psk_len, in main()