Searched refs:cipher_sz (Results 1 – 2 of 2) sorted by relevance
58 const struct tls_cipher_size_desc *cipher_sz; in tls_enc_record() local74 buf_size = TLS_HEADER_SIZE + cipher_sz->iv; in tls_enc_record()88 len -= cipher_sz->iv; in tls_enc_record()92 memcpy(iv + cipher_sz->salt, buf + TLS_HEADER_SIZE, cipher_sz->iv); in tls_enc_record()103 *in_len += cipher_sz->tag; in tls_enc_record()124 len -= cipher_sz->tag; in tls_enc_record()331 const struct tls_cipher_size_desc *cipher_sz; in tls_enc_skb() local352 buf_len = cipher_sz->salt + cipher_sz->iv + TLS_AAD_SPACE_SIZE + in tls_enc_skb()353 sync_size + cipher_sz->tag; in tls_enc_skb()359 memcpy(iv, salt, cipher_sz->salt); in tls_enc_skb()[all …]
910 const struct tls_cipher_size_desc *cipher_sz; in tls_device_reencrypt() local943 rxm->full_len + TLS_HEADER_SIZE + cipher_sz->iv); in tls_device_reencrypt()955 data_len = rxm->full_len - cipher_sz->tag; in tls_device_reencrypt()1078 const struct tls_cipher_size_desc *cipher_sz; in tls_set_device_offload() local1129 if (cipher_sz->rec_seq > TLS_MAX_REC_SEQ_SIZE) { in tls_set_device_offload()1137 prot->tag_size = cipher_sz->tag; in tls_set_device_offload()1139 prot->iv_size = cipher_sz->iv; in tls_set_device_offload()1140 prot->salt_size = cipher_sz->salt; in tls_set_device_offload()1141 ctx->tx.iv = kmalloc(cipher_sz->iv + cipher_sz->salt, GFP_KERNEL); in tls_set_device_offload()1147 memcpy(ctx->tx.iv + cipher_sz->salt, iv, cipher_sz->iv); in tls_set_device_offload()[all …]
Completed in 9 milliseconds