Lines Matching full:connect
70 tcp->connect->send_crypto_info.info.version = TLS_1_2_VERSION; in tls_crypto_info_init()
71 tcp->connect->send_crypto_info.info.cipher_type = in tls_crypto_info_init()
74 memcpy(tcp->connect->send_crypto_info.key, tcp->connect->send_key, in tls_crypto_info_init()
76 memcpy(tcp->connect->send_crypto_info.iv, in tls_crypto_info_init()
78 memcpy(tcp->connect->send_crypto_info.salt, in tls_crypto_info_init()
81 memcpy(tcp->connect->send_crypto_info.rec_seq, in tls_crypto_info_init()
86 KERNEL_SOCKPTR(&(tcp->connect->send_crypto_info)), in tls_crypto_info_init()
87 sizeof(tcp->connect->send_crypto_info)); in tls_crypto_info_init()
92 update_key(tcp->connect->recv_key, key_meterial, HKDF_TYPE_IV); in tls_crypto_info_init()
93 tcp->connect->recv_crypto_info.info.version = TLS_1_2_VERSION; in tls_crypto_info_init()
94 tcp->connect->recv_crypto_info.info.cipher_type = in tls_crypto_info_init()
97 memcpy(tcp->connect->recv_crypto_info.key, tcp->connect->recv_key, in tls_crypto_info_init()
99 memcpy(tcp->connect->recv_crypto_info.iv, in tls_crypto_info_init()
101 memcpy(tcp->connect->recv_crypto_info.salt, in tls_crypto_info_init()
104 memcpy(tcp->connect->recv_crypto_info.rec_seq, in tls_crypto_info_init()
110 KERNEL_SOCKPTR(&(tcp->connect->recv_crypto_info)), in tls_crypto_info_init()
111 sizeof(tcp->connect->recv_crypto_info)); in tls_crypto_info_init()
123 ret = update_key(tcp->connect->send_key, new_key, HKDF_TYPE_REKEY); in tls_set_tx()
126 memcpy(tcp->connect->send_key, new_key, HMDFS_KEY_SIZE); in tls_set_tx()
127 ret = update_key(tcp->connect->send_key, key_meterial, HKDF_TYPE_IV); in tls_set_tx()
131 memcpy(tcp->connect->send_crypto_info.key, tcp->connect->send_key, in tls_set_tx()
133 memcpy(tcp->connect->send_crypto_info.iv, in tls_set_tx()
135 memcpy(tcp->connect->send_crypto_info.salt, in tls_set_tx()
138 memcpy(tcp->connect->send_crypto_info.rec_seq, in tls_set_tx()
144 tls_crypto_set_key(tcp->connect, 1); in tls_set_tx()
154 ret = update_key(tcp->connect->recv_key, new_key, HKDF_TYPE_REKEY); in tls_set_rx()
157 memcpy(tcp->connect->recv_key, new_key, HMDFS_KEY_SIZE); in tls_set_rx()
158 ret = update_key(tcp->connect->recv_key, key_meterial, HKDF_TYPE_IV); in tls_set_rx()
162 memcpy(tcp->connect->recv_crypto_info.key, tcp->connect->recv_key, in tls_set_rx()
164 memcpy(tcp->connect->recv_crypto_info.iv, in tls_set_rx()
166 memcpy(tcp->connect->recv_crypto_info.salt, in tls_set_rx()
169 memcpy(tcp->connect->recv_crypto_info.rec_seq, in tls_set_rx()
174 tls_crypto_set_key(tcp->connect, 0); in tls_set_rx()