Lines Matching refs:s3

55             || !EVP_DigestUpdate(s1, s->s3.server_random, SSL3_RANDOM_SIZE)  in ssl3_generate_key_block()
56 || !EVP_DigestUpdate(s1, s->s3.client_random, SSL3_RANDOM_SIZE) in ssl3_generate_key_block()
103 ciph = s->s3.tmp.new_sym_enc; in ssl3_change_cipher_state()
104 md = s->s3.tmp.new_hash; in ssl3_change_cipher_state()
111 comp = s->s3.tmp.new_compression; in ssl3_change_cipher_state()
114 p = s->s3.tmp.key_block; in ssl3_change_cipher_state()
142 if (n > s->s3.tmp.key_block_length) { in ssl3_change_cipher_state()
170 if (s->s3.tmp.key_block_length != 0) in ssl3_setup_key_block()
180 ssl_evp_cipher_free(s->s3.tmp.new_sym_enc); in ssl3_setup_key_block()
181 s->s3.tmp.new_sym_enc = c; in ssl3_setup_key_block()
182 ssl_evp_md_free(s->s3.tmp.new_hash); in ssl3_setup_key_block()
183 s->s3.tmp.new_hash = hash; in ssl3_setup_key_block()
185 s->s3.tmp.new_compression = NULL; in ssl3_setup_key_block()
187 s->s3.tmp.new_compression = comp; in ssl3_setup_key_block()
204 s->s3.tmp.key_block_length = num; in ssl3_setup_key_block()
205 s->s3.tmp.key_block = p; in ssl3_setup_key_block()
215 OPENSSL_clear_free(s->s3.tmp.key_block, s->s3.tmp.key_block_length); in ssl3_cleanup_key_block()
216 s->s3.tmp.key_block = NULL; in ssl3_cleanup_key_block()
217 s->s3.tmp.key_block_length = 0; in ssl3_cleanup_key_block()
229 s->s3.handshake_buffer = buf; in ssl3_init_finished_mac()
230 (void)BIO_set_close(s->s3.handshake_buffer, BIO_CLOSE); in ssl3_init_finished_mac()
241 BIO_free(s->s3.handshake_buffer); in ssl3_free_digest_list()
242 s->s3.handshake_buffer = NULL; in ssl3_free_digest_list()
243 EVP_MD_CTX_free(s->s3.handshake_dgst); in ssl3_free_digest_list()
244 s->s3.handshake_dgst = NULL; in ssl3_free_digest_list()
251 if (s->s3.handshake_dgst == NULL) { in ssl3_finish_mac()
257 ret = BIO_write(s->s3.handshake_buffer, (void *)buf, (int)len); in ssl3_finish_mac()
263 ret = EVP_DigestUpdate(s->s3.handshake_dgst, buf, len); in ssl3_finish_mac()
278 if (s->s3.handshake_dgst == NULL) { in ssl3_digest_cached_records()
279 hdatalen = BIO_get_mem_data(s->s3.handshake_buffer, &hdata); in ssl3_digest_cached_records()
285 s->s3.handshake_dgst = EVP_MD_CTX_new(); in ssl3_digest_cached_records()
286 if (s->s3.handshake_dgst == NULL) { in ssl3_digest_cached_records()
297 if (!EVP_DigestInit_ex(s->s3.handshake_dgst, md, NULL) in ssl3_digest_cached_records()
298 || !EVP_DigestUpdate(s->s3.handshake_dgst, hdata, hdatalen)) { in ssl3_digest_cached_records()
304 BIO_free(s->s3.handshake_buffer); in ssl3_digest_cached_records()
305 s->s3.handshake_buffer = NULL; in ssl3_digest_cached_records()
332 if (EVP_MD_CTX_get_type(s->s3.handshake_dgst) != NID_md5_sha1) { in ssl3_final_finish_mac()
342 if (!EVP_MD_CTX_copy_ex(ctx, s->s3.handshake_dgst)) { in ssl3_final_finish_mac()
404 || EVP_DigestUpdate(ctx, &(s->s3.client_random[0]), in ssl3_generate_master_secret()
406 || EVP_DigestUpdate(ctx, &(s->s3.server_random[0]), in ssl3_generate_master_secret()