• Home
  • Raw
  • Download

Lines Matching full:connect

67 	tcp->connect->send_crypto_info.info.version = TLS_1_2_VERSION;  in tls_crypto_info_init()
68 tcp->connect->send_crypto_info.info.cipher_type = in tls_crypto_info_init()
71 memcpy(tcp->connect->send_crypto_info.key, tcp->connect->send_key, in tls_crypto_info_init()
73 memcpy(tcp->connect->send_crypto_info.iv, in tls_crypto_info_init()
75 memcpy(tcp->connect->send_crypto_info.salt, in tls_crypto_info_init()
78 memcpy(tcp->connect->send_crypto_info.rec_seq, in tls_crypto_info_init()
83 KERNEL_SOCKPTR(&(tcp->connect->send_crypto_info)), in tls_crypto_info_init()
84 sizeof(tcp->connect->send_crypto_info)); in tls_crypto_info_init()
89 update_key(tcp->connect->recv_key, key_meterial, HKDF_TYPE_IV); in tls_crypto_info_init()
90 tcp->connect->recv_crypto_info.info.version = TLS_1_2_VERSION; in tls_crypto_info_init()
91 tcp->connect->recv_crypto_info.info.cipher_type = in tls_crypto_info_init()
94 memcpy(tcp->connect->recv_crypto_info.key, tcp->connect->recv_key, in tls_crypto_info_init()
96 memcpy(tcp->connect->recv_crypto_info.iv, in tls_crypto_info_init()
98 memcpy(tcp->connect->recv_crypto_info.salt, in tls_crypto_info_init()
101 memcpy(tcp->connect->recv_crypto_info.rec_seq, in tls_crypto_info_init()
107 KERNEL_SOCKPTR(&(tcp->connect->recv_crypto_info)), in tls_crypto_info_init()
108 sizeof(tcp->connect->recv_crypto_info)); in tls_crypto_info_init()
120 ret = update_key(tcp->connect->send_key, new_key, HKDF_TYPE_REKEY); in tls_set_tx()
123 memcpy(tcp->connect->send_key, new_key, HMDFS_KEY_SIZE); in tls_set_tx()
124 ret = update_key(tcp->connect->send_key, key_meterial, HKDF_TYPE_IV); in tls_set_tx()
128 memcpy(tcp->connect->send_crypto_info.key, tcp->connect->send_key, in tls_set_tx()
130 memcpy(tcp->connect->send_crypto_info.iv, in tls_set_tx()
132 memcpy(tcp->connect->send_crypto_info.salt, in tls_set_tx()
135 memcpy(tcp->connect->send_crypto_info.rec_seq, in tls_set_tx()
141 tls_crypto_set_key(tcp->connect, 1); in tls_set_tx()
151 ret = update_key(tcp->connect->recv_key, new_key, HKDF_TYPE_REKEY); in tls_set_rx()
154 memcpy(tcp->connect->recv_key, new_key, HMDFS_KEY_SIZE); in tls_set_rx()
155 ret = update_key(tcp->connect->recv_key, key_meterial, HKDF_TYPE_IV); in tls_set_rx()
159 memcpy(tcp->connect->recv_crypto_info.key, tcp->connect->recv_key, in tls_set_rx()
161 memcpy(tcp->connect->recv_crypto_info.iv, in tls_set_rx()
163 memcpy(tcp->connect->recv_crypto_info.salt, in tls_set_rx()
166 memcpy(tcp->connect->recv_crypto_info.rec_seq, in tls_set_rx()
171 tls_crypto_set_key(tcp->connect, 0); in tls_set_rx()