Lines Matching refs:pmslen
3070 size_t pmslen = 0; in tls_construct_cke_rsa() local
3091 pmslen = SSL_MAX_MASTER_KEY_LENGTH; in tls_construct_cke_rsa()
3092 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_rsa()
3100 if (RAND_bytes_ex(sctx->libctx, pms + 2, pmslen - 2, 0) <= 0) { in tls_construct_cke_rsa()
3113 || EVP_PKEY_encrypt(pctx, NULL, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa()
3118 || EVP_PKEY_encrypt(pctx, encdata, &enclen, pms, pmslen) <= 0) { in tls_construct_cke_rsa()
3132 if (!ssl_log_rsa_client_key_exchange(s, encdata, enclen, pms, pmslen)) { in tls_construct_cke_rsa()
3138 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_rsa()
3142 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_rsa()
3267 size_t pmslen = 0; in tls_construct_cke_gost() local
3296 pmslen = 32; in tls_construct_cke_gost()
3297 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_gost()
3306 || RAND_bytes_ex(sctx->libctx, pms, pmslen, 0) <= 0) { in tls_construct_cke_gost()
3337 if (EVP_PKEY_encrypt(pkey_ctx, tmp, &msglen, pms, pmslen) <= 0) { in tls_construct_cke_gost()
3351 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_gost()
3356 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_gost()
3412 size_t pmslen = 0; in tls_construct_cke_gost18() local
3428 pmslen = 32; in tls_construct_cke_gost18()
3429 pms = OPENSSL_malloc(pmslen); in tls_construct_cke_gost18()
3435 if (RAND_bytes_ex(sctx->libctx, pms, pmslen, 0) <= 0) { in tls_construct_cke_gost18()
3473 if (EVP_PKEY_encrypt(pkey_ctx, NULL, &msglen, pms, pmslen) <= 0) { in tls_construct_cke_gost18()
3479 || EVP_PKEY_encrypt(pkey_ctx, encdata, &msglen, pms, pmslen) <= 0) { in tls_construct_cke_gost18()
3487 s->s3.tmp.pmslen = pmslen; in tls_construct_cke_gost18()
3492 OPENSSL_clear_free(pms, pmslen); in tls_construct_cke_gost18()
3567 OPENSSL_clear_free(s->s3.tmp.pms, s->s3.tmp.pmslen); in tls_construct_client_key_exchange()
3569 s->s3.tmp.pmslen = 0; in tls_construct_client_key_exchange()
3581 size_t pmslen = 0; in tls_client_key_exchange_post_work() local
3584 pmslen = s->s3.tmp.pmslen; in tls_client_key_exchange_post_work()
3601 if (!ssl_generate_master_secret(s, pms, pmslen, 1)) { in tls_client_key_exchange_post_work()
3605 pmslen = 0; in tls_client_key_exchange_post_work()
3609 pmslen = 0; in tls_client_key_exchange_post_work()
3644 OPENSSL_clear_free(pms, pmslen); in tls_client_key_exchange_post_work()
3646 s->s3.tmp.pmslen = 0; in tls_client_key_exchange_post_work()