Home
last modified time | relevance | path

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

/net-tools-3.6.0/mbedtls-2.4.0/library/
Dssl_tls.c1088 size_t psk_len = ssl->conf->psk_len; in mbedtls_ssl_psk_derive_premaster() local
1094 psk_len = ssl->handshake->psk_len; in mbedtls_ssl_psk_derive_premaster()
1110 *(p++) = (unsigned char)( psk_len >> 8 ); in mbedtls_ssl_psk_derive_premaster()
1111 *(p++) = (unsigned char)( psk_len ); in mbedtls_ssl_psk_derive_premaster()
1113 if( end < p || (size_t)( end - p ) < psk_len ) in mbedtls_ssl_psk_derive_premaster()
1116 memset( p, 0, psk_len ); in mbedtls_ssl_psk_derive_premaster()
1117 p += psk_len; in mbedtls_ssl_psk_derive_premaster()
1187 *(p++) = (unsigned char)( psk_len >> 8 ); in mbedtls_ssl_psk_derive_premaster()
1188 *(p++) = (unsigned char)( psk_len ); in mbedtls_ssl_psk_derive_premaster()
1190 if( end < p || (size_t)( end - p ) < psk_len ) in mbedtls_ssl_psk_derive_premaster()
[all …]
Dssl_srv.c772 ssl->conf->psk_identity_len == 0 || ssl->conf->psk_len == 0 ) ) in ssl_ciphersuite_match()
3217 ssl->conf->psk_identity_len == 0 || ssl->conf->psk_len == 0 ) )
/net-tools-3.6.0/mbedtls-2.4.0/include/mbedtls/
Dssl.h672 size_t psk_len; /*!< length of the pre-shared key */ member
1642 const unsigned char *psk, size_t psk_len,
1659 const unsigned char *psk, size_t psk_len );
Dssl_internal.h189 size_t psk_len; /*!< Length of PSK from callback */ member
/net-tools-3.6.0/mbedtls-2.4.0/programs/ssl/
Dssl_client2.c407 size_t psk_len = 0; in main() local
873 psk_len = strlen( opt.psk ) / 2; in main()
1189 if( ( ret = mbedtls_ssl_conf_psk( &conf, psk, psk_len, in main()
Dssl_server2.c787 size_t psk_len = 0; in main() local
1338 if( unhexify( psk, opt.psk, &psk_len ) != 0 ) in main()
1793 ret = mbedtls_ssl_conf_psk( &conf, psk, psk_len, in main()