Home
last modified time | relevance | path

Searched refs:plaintext_len (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/wireguard/
H A Dsend.c164 unsigned int padding_len, plaintext_len, trailer_len; in encrypt_packet() local
178 plaintext_len = skb->len + padding_len; in encrypt_packet()
214 noise_encrypted_len(plaintext_len)) <= 0) in encrypt_packet()
216 return chacha20poly1305_encrypt_sg_inplace(sg, plaintext_len, NULL, 0, in encrypt_packet()
/linux/net/tls/
H A Dtls.h335 tls_fill_prepend(struct tls_context *ctx, char *buf, size_t plaintext_len, in tls_fill_prepend() argument
341 pkt_len = plaintext_len + prot->tag_size; in tls_fill_prepend()
/linux/net/ceph/
H A Dauth_x.c86 void *buf, int buf_len, int plaintext_len) in ceph_x_encrypt() argument
97 buf_len - sizeof(u32), plaintext_len + sizeof(*hdr), in ceph_x_encrypt()
110 int plaintext_len; in __ceph_x_decrypt() local
114 ciphertext_len, &plaintext_len); in __ceph_x_decrypt()
124 return plaintext_len - sizeof(*hdr); in __ceph_x_decrypt()
/linux/tools/testing/selftests/net/
H A Dtls.c2873 __u16 plaintext_len; in parse_tls_records() local
2884 plaintext_len = record_payload_len - overhead; in parse_tls_records()
2885 total_plaintext_rx += plaintext_len; in parse_tls_records()
2888 ASSERT_LE(plaintext_len, max_payload_len); in parse_tls_records()