Home
last modified time | relevance | path

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

/net/ceph/
Dcrypto.c220 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
226 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
227 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
232 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
266 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
268 in_len >= pad_byte) { in ceph_aes_crypt()
269 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
272 __func__, pad_byte, in_len); in ceph_aes_crypt()
284 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument
288 *pout_len = in_len; in ceph_crypt()
[all …]
Dcrypto.h31 void *buf, int buf_len, int in_len, int *pout_len);
/net/tls/
Dtls_device_fallback.c54 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
75 len = min_t(int, *in_len, buf_size); in tls_enc_record()
80 *in_len -= len; in tls_enc_record()
81 if (!*in_len) in tls_enc_record()
101 *in_len -= len; in tls_enc_record()
102 if (*in_len < 0) { in tls_enc_record()
103 *in_len += cipher_desc->tag; in tls_enc_record()
111 if (*in_len < 0) in tls_enc_record()
112 len += *in_len; in tls_enc_record()
114 *in_len = 0; in tls_enc_record()
[all …]
Dtls_strp.c211 size_t in_len) in tls_strp_copyin_frag() argument
219 len = in_len; in tls_strp_copyin_frag()
276 return in_len - len; in tls_strp_copyin_frag()
281 size_t in_len) in tls_strp_copyin_skb() argument
292 chunk = min(chunk, in_len); in tls_strp_copyin_skb()
336 unsigned int offset, size_t in_len) in tls_strp_copyin() argument
352 ret = tls_strp_copyin_skb(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
354 ret = tls_strp_copyin_frag(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()