Searched refs:rl (Results 1 – 11 of 11) sorted by relevance
30 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl, in tlsv1_record_set_cipher_suite() argument38 rl->cipher_suite = cipher_suite; in tlsv1_record_set_cipher_suite()45 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_MD5; in tlsv1_record_set_cipher_suite()46 rl->hash_size = MD5_MAC_LEN; in tlsv1_record_set_cipher_suite()48 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA1; in tlsv1_record_set_cipher_suite()49 rl->hash_size = SHA1_MAC_LEN; in tlsv1_record_set_cipher_suite()51 rl->hash_alg = CRYPTO_HASH_ALG_HMAC_SHA256; in tlsv1_record_set_cipher_suite()52 rl->hash_size = SHA256_MAC_LEN; in tlsv1_record_set_cipher_suite()59 rl->key_material_len = data->key_material; in tlsv1_record_set_cipher_suite()60 rl->iv_size = data->block_size; in tlsv1_record_set_cipher_suite()[all …]
89 if (tls_prf(conn->rl.tls_version, in tls_derive_keys()103 key_block_len = 2 * (conn->rl.hash_size + conn->rl.key_material_len); in tls_derive_keys()104 if (conn->rl.tls_version == TLS_VERSION_1) in tls_derive_keys()105 key_block_len += 2 * conn->rl.iv_size; in tls_derive_keys()106 if (tls_prf(conn->rl.tls_version, in tls_derive_keys()119 os_memcpy(conn->rl.write_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys()120 pos += conn->rl.hash_size; in tls_derive_keys()122 os_memcpy(conn->rl.read_mac_secret, pos, conn->rl.hash_size); in tls_derive_keys()123 pos += conn->rl.hash_size; in tls_derive_keys()126 os_memcpy(conn->rl.write_key, pos, conn->rl.key_material_len); in tls_derive_keys()[all …]
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()[all …]
60 int tlsv1_record_set_cipher_suite(struct tlsv1_record_layer *rl,62 int tlsv1_record_change_write_cipher(struct tlsv1_record_layer *rl);63 int tlsv1_record_change_read_cipher(struct tlsv1_record_layer *rl);64 int tlsv1_record_send(struct tlsv1_record_layer *rl, u8 content_type, u8 *buf,67 int tlsv1_record_receive(struct tlsv1_record_layer *rl,
88 WPA_PUT_BE16(pos, conn->rl.tls_version); in tls_write_server_hello()173 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_hello()197 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_certificate()263 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate()350 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_server_certificate_status()380 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_server_key_exchange()386 if (!tls_server_key_exchange_allowed(conn->rl.cipher_suite)) { in tls_write_server_key_exchange()569 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_write_server_key_exchange()572 conn->rl.tls_version, TLS_HASH_ALG_SHA256, in tls_write_server_key_exchange()621 conn->rl.tls_version, conn->client_random, in tls_write_server_key_exchange()[all …]
120 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_send_client_hello()236 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_send_client_hello()318 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_certificate()514 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_write_client_key_exchange()547 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_key_exchange()609 if (conn->rl.tls_version == TLS_VERSION_1_2) { in tls_write_client_certificate_verify()674 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_write_client_certificate_verify()718 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_HANDSHAKE, in tls_write_client_certificate_verify()746 if (tlsv1_record_send(&conn->rl, TLS_CONTENT_TYPE_CHANGE_CIPHER_SPEC, in tls_write_client_change_cipher_spec()755 if (tlsv1_record_change_write_cipher(&conn->rl) < 0) { in tls_write_client_change_cipher_spec()[all …]
195 conn->rl.tls_version = TLS_VERSION_1; in tls_process_client_hello()198 conn->rl.tls_version = TLS_VERSION_1_2; in tls_process_client_hello()201 conn->rl.tls_version = TLS_VERSION_1_1; in tls_process_client_hello()203 conn->rl.tls_version = conn->client_version; in tls_process_client_hello()205 tls_version_str(conn->rl.tls_version)); in tls_process_client_hello()273 if (tlsv1_record_set_cipher_suite(&conn->rl, cipher_suite) < 0) { in tls_process_client_hello()862 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_process_client_key_exchange()959 if (conn->rl.tls_version == TLS_VERSION_1_2) { in tls_process_certificate_verify()1030 if (tls_verify_signature(conn->rl.tls_version, conn->client_rsa_key, in tls_process_certificate_verify()1079 if (tlsv1_record_change_read_cipher(&conn->rl) < 0) { in tls_process_change_cipher_spec()[all …]
139 conn->rl.tls_version = tls_version; in tls_process_server_hello()195 if (tlsv1_record_set_cipher_suite(&conn->rl, cipher_suite) < 0) { in tls_process_server_hello()738 if (conn->rl.tls_version == TLS_VERSION_1_2) { in tlsv1_process_diffie_hellman()762 conn->rl.tls_version, pos[0], in tlsv1_process_diffie_hellman()772 conn->rl.tls_version, conn->client_random, in tlsv1_process_diffie_hellman()782 if (tls_verify_signature(conn->rl.tls_version, in tlsv1_process_diffie_hellman()1085 if (!tls_server_key_exchange_allowed(conn->rl.cipher_suite)) { in tls_process_server_key_exchange()1094 suite = tls_get_cipher_suite(conn->rl.cipher_suite); in tls_process_server_key_exchange()1303 if (tlsv1_record_change_read_cipher(&conn->rl) < 0) { in tls_process_server_change_cipher_spec()1381 if (conn->rl.tls_version >= TLS_VERSION_1_2) { in tls_process_server_finished()[all …]
22 struct tlsv1_record_layer rl; member
21 struct tlsv1_record_layer rl; member
36 #define scard_umts_auth(s, r, a, r2, rl, i, c, a2) -1 argument