Lines Matching refs:s3
96 TLS_MD_KEY_EXPANSION_CONST_SIZE, s->s3.server_random, in tls1_generate_key_block()
97 SSL3_RANDOM_SIZE, s->s3.client_random, SSL3_RANDOM_SIZE, in tls1_generate_key_block()
133 c = s->s3.tmp.new_sym_enc; in tls1_change_cipher_state()
134 m = s->s3.tmp.new_hash; in tls1_change_cipher_state()
135 mac_type = s->s3.tmp.new_mac_pkey_type; in tls1_change_cipher_state()
137 comp = s->s3.tmp.new_compression; in tls1_change_cipher_state()
140 p = s->s3.tmp.key_block; in tls1_change_cipher_state()
141 i = mac_secret_size = s->s3.tmp.new_mac_secret_size; in tls1_change_cipher_state()
169 if (n > s->s3.tmp.key_block_length) { in tls1_change_cipher_state()
179 if ((s->s3.tmp.new_cipher->algorithm_enc in tls1_change_cipher_state()
190 taglen = s->s3.tmp.new_mac_secret_size; in tls1_change_cipher_state()
197 s->s3.flags |= TLS1_FLAGS_ENCRYPT_THEN_MAC_READ; in tls1_change_cipher_state()
199 s->s3.flags &= ~TLS1_FLAGS_ENCRYPT_THEN_MAC_READ; in tls1_change_cipher_state()
201 if (s->s3.tmp.new_cipher->algorithm2 & TLS1_STREAM_MAC) in tls1_change_cipher_state()
206 if (s->s3.tmp.new_cipher->algorithm2 & TLS1_TLSTREE) in tls1_change_cipher_state()
214 s->s3.flags |= TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE; in tls1_change_cipher_state()
216 s->s3.flags &= ~TLS1_FLAGS_ENCRYPT_THEN_MAC_WRITE; in tls1_change_cipher_state()
218 if (s->s3.tmp.new_cipher->algorithm2 & TLS1_STREAM_MAC) in tls1_change_cipher_state()
223 if (s->s3.tmp.new_cipher->algorithm2 & TLS1_TLSTREE) in tls1_change_cipher_state()
266 if (s->s3.tmp.key_block_length != 0) in tls1_setup_key_block()
277 ssl_evp_cipher_free(s->s3.tmp.new_sym_enc); in tls1_setup_key_block()
278 s->s3.tmp.new_sym_enc = c; in tls1_setup_key_block()
279 ssl_evp_md_free(s->s3.tmp.new_hash); in tls1_setup_key_block()
280 s->s3.tmp.new_hash = hash; in tls1_setup_key_block()
281 s->s3.tmp.new_mac_pkey_type = mac_type; in tls1_setup_key_block()
282 s->s3.tmp.new_mac_secret_size = mac_secret_size; in tls1_setup_key_block()
298 s->s3.tmp.key_block_length = num; in tls1_setup_key_block()
299 s->s3.tmp.key_block = p; in tls1_setup_key_block()
304 BIO_dump_indent(trc_out, s->s3.client_random, SSL3_RANDOM_SIZE, 4); in tls1_setup_key_block()
306 BIO_dump_indent(trc_out, s->s3.server_random, SSL3_RANDOM_SIZE, 4); in tls1_setup_key_block()
335 if (s->s3.tmp.new_cipher->algorithm_mkey & SSL_kGOST18) in tls1_final_finish_mac()
395 s->s3.client_random, SSL3_RANDOM_SIZE, in tls1_generate_master_secret()
397 s->s3.server_random, SSL3_RANDOM_SIZE, in tls1_generate_master_secret()
409 BIO_dump_indent(trc_out, s->s3.client_random, SSL3_RANDOM_SIZE, 4); in tls1_generate_master_secret()
411 BIO_dump_indent(trc_out, s->s3.server_random, SSL3_RANDOM_SIZE, 4); in tls1_generate_master_secret()
456 memcpy(val + currentvalpos, s->s3.client_random, SSL3_RANDOM_SIZE); in tls1_export_keying_material()
458 memcpy(val + currentvalpos, s->s3.server_random, SSL3_RANDOM_SIZE); in tls1_export_keying_material()