Lines Matching refs:rl

64 		if (tls_prf(conn->rl.tls_version,
78 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len);
79 if (conn->rl.tls_version == TLS_VERSION_1)
80 key_block_len += 2 * conn->rl.iv_size;
81 if (tls_prf(conn->rl.tls_version,
94 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size);
95 pos += conn->rl.hash_size;
97 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size);
98 pos += conn->rl.hash_size;
101 os_memcpy(conn->rl.write_key, pos, conn->rl.key_material_len);
102 pos += conn->rl.key_material_len;
104 os_memcpy(conn->rl.read_key, pos, conn->rl.key_material_len);
105 pos += conn->rl.key_material_len;
107 if (conn->rl.tls_version == TLS_VERSION_1) {
109 os_memcpy(conn->rl.write_iv, pos, conn->rl.iv_size);
110 pos += conn->rl.iv_size;
112 os_memcpy(conn->rl.read_iv, pos, conn->rl.iv_size);
113 pos += conn->rl.iv_size;
120 os_memset(conn->rl.write_iv, 0, conn->rl.iv_size);
184 used = tlsv1_record_receive(&conn->rl, pos, end - pos,
282 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_APPLICATION_DATA,
342 used = tlsv1_record_receive(&conn->rl, pos, in_end - pos,
476 conn->rl.tls_version = TLS_VERSION;
489 tlsv1_record_set_cipher_suite(&conn->rl, TLS_NULL_WITH_NULL_NULL);
490 tlsv1_record_change_write_cipher(&conn->rl);
491 tlsv1_record_change_read_cipher(&conn->rl);
540 return tls_prf(conn->rl.tls_version,
560 switch (conn->rl.cipher_suite) {
649 tlsv1_record_set_cipher_suite(&conn->rl, TLS_NULL_WITH_NULL_NULL);
650 tlsv1_record_change_write_cipher(&conn->rl);
651 tlsv1_record_change_read_cipher(&conn->rl);
751 return 2 * (conn->rl.hash_size + conn->rl.key_material_len +
752 conn->rl.iv_size);