Lines Matching refs:pms

1580   uint8_t *pms = NULL;  in ssl3_send_client_key_exchange()  local
1632 pms = OPENSSL_malloc(pms_len); in ssl3_send_client_key_exchange()
1633 if (pms == NULL) { in ssl3_send_client_key_exchange()
1653 pms[0] = ssl->client_version >> 8; in ssl3_send_client_key_exchange()
1654 pms[1] = ssl->client_version & 0xff; in ssl3_send_client_key_exchange()
1655 if (!RAND_bytes(&pms[2], SSL_MAX_MASTER_KEY_LENGTH - 2)) { in ssl3_send_client_key_exchange()
1671 !RSA_encrypt(rsa, &enc_pms_len, ptr, RSA_size(rsa), pms, pms_len, in ssl3_send_client_key_exchange()
1674 !ssl_log_rsa_client_key_exchange(ssl, ptr, enc_pms_len, pms, pms_len) || in ssl3_send_client_key_exchange()
1698 if (!SSL_ECDH_CTX_compute_secret(&ssl->s3->tmp.ecdh_ctx, &pms, &pms_len, in ssl3_send_client_key_exchange()
1713 pms = OPENSSL_malloc(pms_len); in ssl3_send_client_key_exchange()
1714 if (pms == NULL) { in ssl3_send_client_key_exchange()
1718 memset(pms, 0, pms_len); in ssl3_send_client_key_exchange()
1735 !CBB_add_bytes(&child, pms, pms_len) || in ssl3_send_client_key_exchange()
1743 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1744 OPENSSL_free(pms); in ssl3_send_client_key_exchange()
1745 pms = new_pms; in ssl3_send_client_key_exchange()
1759 ssl, ssl->session->master_key, pms, pms_len); in ssl3_send_client_key_exchange()
1764 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1765 OPENSSL_free(pms); in ssl3_send_client_key_exchange()
1771 if (pms != NULL) { in ssl3_send_client_key_exchange()
1772 OPENSSL_cleanse(pms, pms_len); in ssl3_send_client_key_exchange()
1773 OPENSSL_free(pms); in ssl3_send_client_key_exchange()