Home
last modified time | relevance | path

Searched refs:pmslen (Results 1 – 9 of 9) sorted by relevance

/third_party/openssl/ssl/
Ds3_lib.c3361 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_free()
3380 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in ssl3_clear()
4596 int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen, in ssl_generate_master_secret() argument
4612 pmslen = psklen; in ssl_generate_master_secret()
4614 pskpmslen = 4 + pmslen + psklen; in ssl_generate_master_secret()
4619 s2n(pmslen, t); in ssl_generate_master_secret()
4621 memset(t, 0, pmslen); in ssl_generate_master_secret()
4623 memcpy(t, pms, pmslen); in ssl_generate_master_secret()
4624 t += pmslen; in ssl_generate_master_secret()
4645 s->session->master_key, pms, pmslen, in ssl_generate_master_secret()
[all …]
Dssl_local.h1341 size_t pmslen; member
2460 __owur int ssl_generate_master_secret(SSL *s, unsigned char *pms, size_t pmslen,
2463 __owur int ssl_gensecret(SSL *s, unsigned char *pms, size_t pmslen);
/third_party/openssl/ssl/statem/
Dstatem_clnt.c2831 size_t pmslen = 0; in tls_construct_cke_rsa() local
2847 pmslen = SSL_MAX_MASTER_KEY_LENGTH; in tls_construct_cke_rsa()
2848 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_rsa()
2856 if (RAND_bytes_ex(s->ctx->libctx, pms + 2, pmslen - 2, 0) <= 0) { in tls_construct_cke_rsa()
2869 || EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa()
2874 || EVP_PKEY_encrypt(pctx, encdata, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa()
2888 if (!ssl_log_rsa_client_key_exchange(s, encdata, enclen, pms, pmslen)) { in tls_construct_cke_rsa()
2894 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_rsa()
2898 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_rsa()
3023 size_t pmslen = 0; in tls_construct_cke_gost() local
[all …]
Dextensions_srvr.c1707 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
/third_party/mbedtls/library/
Decjpake.c1041 size_t len, pmslen; in mbedtls_ecjpake_self_test() local
1081 pms, sizeof( pms ), &pmslen, ecjpake_lgc, NULL ) == 0 ); in mbedtls_ecjpake_self_test()
1091 TEST_ASSERT( len == pmslen ); in mbedtls_ecjpake_self_test()
Dssl_cli.c2701 ssl->handshake->pmslen = 48; in ssl_write_encrypted_pms()
2725 p, ssl->handshake->pmslen, in ssl_write_encrypted_pms()
3517 &ssl->handshake->pmslen, in ssl_write_client_key_exchange()
3602 &ssl->handshake->pmslen ); in ssl_write_client_key_exchange()
3668 &ssl->handshake->pmslen, in ssl_write_client_key_exchange()
3862 ssl->handshake->premaster, 32, &ssl->handshake->pmslen, in ssl_write_client_key_exchange()
Dssl_srv.c3608 ssl->handshake->pmslen = 48; in ssl_parse_encrypted_pms()
3612 for( i = 0; i < ssl->handshake->pmslen; i++ ) in ssl_parse_encrypted_pms()
3744 &ssl->handshake->pmslen, in ssl_parse_client_key_exchange()
3775 &ssl->handshake->pmslen, in ssl_parse_client_key_exchange()
3958 ssl->handshake->premaster, 32, &ssl->handshake->pmslen, in ssl_parse_client_key_exchange()
Dssl_misc.h572 size_t pmslen; /*!< premaster length */ member
Dssl_tls.c1267 ret = handshake->tls_prf( handshake->premaster, handshake->pmslen, in ssl_compute_master()
1279 handshake->pmslen ); in ssl_compute_master()
1576 ssl->handshake->pmslen = p - ssl->handshake->premaster; in mbedtls_ssl_psk_derive_premaster()