Lines Matching refs:rl
71 if (tls_prf(conn->rl.tls_version, in tlsv1_server_derive_keys()
85 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_derive_keys()
86 conn->rl.iv_size); in tlsv1_server_derive_keys()
87 if (tls_prf(conn->rl.tls_version, in tlsv1_server_derive_keys()
100 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys()
101 pos += conn->rl.hash_size; in tlsv1_server_derive_keys()
103 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tlsv1_server_derive_keys()
104 pos += conn->rl.hash_size; in tlsv1_server_derive_keys()
107 os_memcpy(conn->rl.read_key, pos, conn->rl.key_material_len); in tlsv1_server_derive_keys()
108 pos += conn->rl.key_material_len; in tlsv1_server_derive_keys()
110 os_memcpy(conn->rl.write_key, pos, conn->rl.key_material_len); in tlsv1_server_derive_keys()
111 pos += conn->rl.key_material_len; in tlsv1_server_derive_keys()
114 os_memcpy(conn->rl.read_iv, pos, conn->rl.iv_size); in tlsv1_server_derive_keys()
115 pos += conn->rl.iv_size; in tlsv1_server_derive_keys()
117 os_memcpy(conn->rl.write_iv, pos, conn->rl.iv_size); in tlsv1_server_derive_keys()
118 pos += conn->rl.iv_size; in tlsv1_server_derive_keys()
155 used = tlsv1_record_receive(&conn->rl, pos, end - pos, in tlsv1_server_handshake()
236 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_APPLICATION_DATA, in tlsv1_server_encrypt()
277 used = tlsv1_record_receive(&conn->rl, pos, in_end - pos, in tlsv1_server_decrypt()
420 tlsv1_record_set_cipher_suite(&conn->rl, TLS_NULL_WITH_NULL_NULL); in tlsv1_server_clear_data()
421 tlsv1_record_change_write_cipher(&conn->rl); in tlsv1_server_clear_data()
422 tlsv1_record_change_read_cipher(&conn->rl); in tlsv1_server_clear_data()
511 res = tls_prf(conn->rl.tls_version, in tlsv1_server_prf()
533 switch (conn->rl.cipher_suite) { in tlsv1_server_get_cipher()
674 return 2 * (conn->rl.hash_size + conn->rl.key_material_len + in tlsv1_server_get_keyblock_size()
675 conn->rl.iv_size); in tlsv1_server_get_keyblock_size()