Home
last modified time | relevance | path

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

123

/linux/lib/
H A Ddecompress_unlzo.c41 STATIC inline long INIT parse_header(u8 *input, long *skip, long in_len) in parse_header() argument
45 u8 *end = input + in_len; in parse_header()
53 if (in_len < HEADER_SIZE_MIN) in parse_header()
97 STATIC int INIT unlzo(u8 *input, long in_len, in unlzo() argument
151 in_len = fill(in_buf, HEADER_SIZE_MAX); in unlzo()
154 if (!parse_header(in_buf, &skip, in_len)) { in unlzo()
159 in_len -= skip; in unlzo()
163 memcpy(in_buf_save, in_buf, in_len); in unlzo()
172 if (fill && in_len < 4) { in unlzo()
173 skip = fill(in_buf + in_len, 4 - in_len); in unlzo()
[all …]
H A Ddecompress_unzstd.c125 static int INIT decompress_single(const u8 *in_buf, long in_len, u8 *out_buf, in decompress_single() argument
144 ret = zstd_find_frame_compressed_size(in_buf, in_len); in decompress_single()
148 in_len = (long)ret; in decompress_single()
150 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single()
156 *in_pos = in_len; in decompress_single()
165 static int INIT __unzstd(unsigned char *in_buf, long in_len, in __unzstd() argument
196 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd()
212 in_len = 0; in __unzstd()
216 in_len = fill(in_buf, ZSTD_IOBUF_SIZE); in __unzstd()
217 if (in_len < 0) { in __unzstd()
[all …]
H A Ddecompress_unlz4.c31 STATIC inline int INIT unlz4(u8 *input, long in_len, in unlz4() argument
43 long size = in_len; in unlz4()
45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4()
207 STATIC int INIT __decompress(unsigned char *buf, long in_len, in __decompress() argument
215 return unlz4(buf, in_len - 4, fill, flush, output, posp, error); in __decompress()
/linux/lib/crypto/
H A Dsha3.c200 void __sha3_update(struct __sha3_ctx *ctx, const u8 *in, size_t in_len) in __sha3_update() argument
208 if (absorb_offset && absorb_offset + in_len >= block_size) { in __sha3_update()
212 in_len -= block_size - absorb_offset; in __sha3_update()
217 if (in_len >= block_size) { in __sha3_update()
218 size_t nblocks = in_len / block_size; in __sha3_update()
222 in_len -= nblocks * block_size; in __sha3_update()
225 if (in_len) { in __sha3_update()
226 crypto_xor(&ctx->state.bytes[absorb_offset], in, in_len); in __sha3_update()
227 absorb_offset += in_len; in __sha3_update()
284 static inline bool sha3_224_arch(const u8 *in, size_t in_len, in sha3_224_arch() argument
[all …]
/linux/include/crypto/
H A Dsha3.h67 void __sha3_update(struct __sha3_ctx *ctx, const u8 *in, size_t in_len);
184 const u8 *in, size_t in_len) in sha3_update() argument
186 __sha3_update(&ctx->ctx, in, in_len); in sha3_update()
244 const u8 *in, size_t in_len) in shake_update() argument
246 __sha3_update(&ctx->ctx, in, in_len); in shake_update()
275 void sha3_224(const u8 *in, size_t in_len, u8 out[SHA3_224_DIGEST_SIZE]);
288 void sha3_256(const u8 *in, size_t in_len, u8 out[SHA3_256_DIGEST_SIZE]);
301 void sha3_384(const u8 *in, size_t in_len, u8 out[SHA3_384_DIGEST_SIZE]);
314 void sha3_512(const u8 *in, size_t in_len, u8 out[SHA3_512_DIGEST_SIZE]);
329 void shake128(const u8 *in, size_t in_len, u8 *out, size_t out_len);
[all …]
/linux/fs/smb/client/
H A Dcifssmb.c229 unsigned int in_len; in small_smb_init() local
242 in_len = header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
248 return in_len; in small_smb_init()
282 unsigned int in_len; in __smb_init() local
296 in_len = header_assemble((struct smb_hdr *)*request_buf, smb_command, tcon, in __smb_init()
302 return in_len; in __smb_init()
428 unsigned int in_len; in CIFSSMBNegotiate() local
443 in_len = rc; in CIFSSMBNegotiate()
467 in_len += count; in CIFSSMBNegotiate()
470 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in_len, in CIFSSMBNegotiate()
[all …]
H A Dcifstransport.c139 char *in_buf, unsigned int in_len, int flags) in SendReceiveNoRsp() argument
147 iov[0].iov_len = in_len; in SendReceiveNoRsp()
219 struct smb_hdr *in_buf, unsigned int in_len, in SendReceive() argument
224 struct kvec iov = { .iov_base = in_buf, .iov_len = in_len }; in SendReceive()
229 if (WARN_ON_ONCE(in_len > 0xffffff)) in SendReceive()
230 return smb_EIO1(smb_eio_trace_tx_too_long, in_len); in SendReceive()
245 if (in_len > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE) { in SendReceive()
247 in_len); in SendReceive()
248 return smb_EIO1(smb_eio_trace_tx_too_long, in_len); in SendReceive()
/linux/lib/crypto/s390/
H A Dsha3.h64 static inline bool s390_sha3(int func, const u8 *in, size_t in_len, in s390_sha3() argument
77 cpacf_klmd(func, &state, in, in_len); in s390_sha3()
88 static bool sha3_224_arch(const u8 *in, size_t in_len, in sha3_224_arch() argument
91 return s390_sha3(CPACF_KLMD_SHA3_224, in, in_len, in sha3_224_arch()
96 static bool sha3_256_arch(const u8 *in, size_t in_len, in sha3_256_arch() argument
99 return s390_sha3(CPACF_KLMD_SHA3_256, in, in_len, in sha3_256_arch()
104 static bool sha3_384_arch(const u8 *in, size_t in_len, in sha3_384_arch() argument
107 return s390_sha3(CPACF_KLMD_SHA3_384, in, in_len, in sha3_384_arch()
112 static bool sha3_512_arch(const u8 *in, size_t in_len, in sha3_512_arch() argument
115 return s390_sha3(CPACF_KLMD_SHA3_512, in, in_len, in sha3_512_arch()
/linux/lib/crypto/tests/
H A Dsha3_kunit.c250 static void shake(int alg, const u8 *in, size_t in_len, u8 *out, size_t out_len) in shake() argument
253 shake128(in, in_len, out, out_len); in shake()
255 shake256(in, in_len, out, out_len); in shake()
285 for (size_t in_len = 0; in_len <= max_len; in_len++) { in test_shake_all_lens_up_to_4096() local
286 size_t out_len = (in_len * 293) % (max_len + 1); in test_shake_all_lens_up_to_4096()
288 shake(alg, in, in_len, out, out_len); in test_shake_all_lens_up_to_4096()
321 const size_t in_len = rand_length(max_len); in test_shake_multiple_squeezes() local
323 const size_t in_offs = rand_offset(max_len - in_len); in test_shake_multiple_squeezes()
330 rand_bytes(in, in_len); in test_shake_multiple_squeezes()
334 shake(alg, in, in_len, ref_out, out_len); in test_shake_multiple_squeezes()
[all …]
/linux/net/ceph/
H A Dcrypto.c208 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
214 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
215 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
220 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
254 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
256 in_len >= pad_byte) { in ceph_aes_crypt()
257 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
260 __func__, pad_byte, in_len); in ceph_aes_crypt()
272 void *buf, int buf_len, int in_len, int *pout_len) in ceph_crypt() argument
276 *pout_len = in_len; in ceph_crypt()
[all …]
/linux/drivers/net/ethernet/sfc/
H A Dtx_tso.c66 unsigned int in_len; member
174 unsigned int header_len, in_len; in tso_start() local
180 in_len = skb_headlen(skb) - header_len; in tso_start()
182 st->in_len = in_len; in tso_start()
215 st->in_len = skb_frag_size(frag); in tso_get_fragment()
239 if (st->in_len == 0) in tso_fill_packet_with_fragment()
244 EFX_WARN_ON_ONCE_PARANOID(st->in_len <= 0); in tso_fill_packet_with_fragment()
247 n = min(st->in_len, st->packet_space); in tso_fill_packet_with_fragment()
251 st->in_len -= n; in tso_fill_packet_with_fragment()
263 if (st->in_len == 0) { in tso_fill_packet_with_fragment()
[all …]
/linux/fs/ubifs/
H A Dcrypto.c39 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument
43 unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE); in ubifs_encrypt()
47 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
50 if (pad_len != in_len) in ubifs_encrypt()
51 memset(p + in_len, 0, pad_len - in_len); in ubifs_encrypt()
/linux/drivers/platform/x86/tuxedo/nb04/
H A Dwmi_util.c19 acpi_size in_len, in __wmi_method_acpi_object_out() argument
22 struct acpi_buffer acpi_buffer_in = { in_len, in }; in __wmi_method_acpi_object_out()
26 print_hex_dump_bytes("", DUMP_PREFIX_OFFSET, in, in_len); in __wmi_method_acpi_object_out()
48 acpi_size in_len, in __wmi_method_buffer_out() argument
57 in, in_len, in __wmi_method_buffer_out()
/linux/security/keys/
H A Dkeyctl_pkey.c138 if (uparams.in_len > info.max_dec_size || in keyctl_pkey_params_get_2()
143 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
148 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
153 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
161 params->in_len = uparams.in_len; in keyctl_pkey_params_get_2()
244 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
306 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/linux/fs/btrfs/
H A Dlzo.c250 u32 in_len; in lzo_compress_folios() local
261 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_folios()
262 ASSERT(in_len); in lzo_compress_folios()
264 ret = lzo1x_1_compress(data_in, in_len, in lzo_compress_folios()
280 cur_in += in_len; in lzo_compress_folios()
456 size_t in_len; in lzo_decompress() local
464 in_len = read_compress_length(data_in); in lzo_decompress()
465 if (unlikely(in_len != srclen)) in lzo_decompress()
469 in_len = read_compress_length(data_in); in lzo_decompress()
470 if (unlikely(in_len != srclen - LZO_LEN * 2)) { in lzo_decompress()
[all …]
/linux/net/tls/
H A Dtls_device_fallback.c44 struct scatter_walk *out, int *in_len, in chain_to_walk()
59 len = min_t(int, *in_len, buf_size); in tls_enc_record()
64 *in_len -= len; in tls_enc_record()
65 if (!*in_len) in tls_enc_record()
82 *in_len -= len; in tls_enc_record()
83 if (*in_len < 0) { in tls_enc_record()
84 *in_len += cipher_desc->tag; in tls_enc_record()
92 if (*in_len < 0) in tls_enc_record()
93 len += *in_len; in tls_enc_record()
95 *in_len in tls_enc_record()
55 tls_enc_record(struct aead_request * aead_req,struct crypto_aead * aead,char * aad,char * iv,__be64 rcd_sn,struct scatter_walk * in,struct scatter_walk * out,int * in_len,struct tls_prot_info * prot) tls_enc_record() argument
[all...]
H A Dtls_strp.c212 size_t in_len) in tls_strp_copyin_frag() argument
226 len = in_len; in tls_strp_copyin_frag()
283 return in_len - len; in tls_strp_copyin_frag()
288 size_t in_len) in tls_strp_copyin_skb() argument
299 chunk = min(chunk, in_len); in tls_strp_copyin_skb()
343 unsigned int offset, size_t in_len) in tls_strp_copyin() argument
359 ret = tls_strp_copyin_skb(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
361 ret = tls_strp_copyin_frag(strp, skb, in_skb, offset, in_len); in tls_strp_copyin()
/linux/Documentation/crypto/
H A Dsha3.rst43 void sha3_224(const u8 *in, size_t in_len, u8 out[SHA3_224_DIGEST_SIZE]);
44 void sha3_256(const u8 *in, size_t in_len, u8 out[SHA3_256_DIGEST_SIZE]);
45 void sha3_384(const u8 *in, size_t in_len, u8 out[SHA3_384_DIGEST_SIZE]);
46 void sha3_512(const u8 *in, size_t in_len, u8 out[SHA3_512_DIGEST_SIZE]);
62 void sha3_update(struct sha3_ctx *ctx, const u8 *in, size_t in_len);
77 void shake128(const u8 *in, size_t in_len, u8 *out, size_t out_len);
78 void shake256(const u8 *in, size_t in_len, u8 *out, size_t out_len);
93 void shake_update(struct shake_ctx *ctx, const u8 *in, size_t in_len);
/linux/scripts/kconfig/
H A Dpreprocess.c507 size_t in_len, out_len; in __expand_string() local
517 in_len = p - in; in __expand_string()
520 out_len += in_len + strlen(expansion); in __expand_string()
522 strncat(out, in, in_len); in __expand_string()
535 in_len = p - in; in __expand_string()
536 out_len += in_len; in __expand_string()
538 strncat(out, in, in_len); in __expand_string()
/linux/drivers/infiniband/core/
H A Ducma.c376 int in_len, int out_len) in ucma_get_event() argument
446 int in_len, int out_len) in ucma_create_id() argument
598 int in_len, int out_len) in ucma_destroy_id() argument
632 int in_len, int out_len) in ucma_bind_ip() argument
657 int in_len, int out_len) in ucma_bind() argument
683 int in_len, int out_len) in ucma_resolve_ip() argument
710 int in_len, int out_len) in ucma_resolve_addr() argument
737 const char __user *inbuf, int in_len, in ucma_resolve_ib_service() argument
760 int in_len, int out_len) in ucma_resolve_route() argument
846 int in_len, int out_len) in ucma_query_route() argument
[all …]
/linux/fs/befs/
H A Dlinuxvfs.c53 static int befs_utf2nls(struct super_block *sb, const char *in, int in_len,
55 static int befs_nls2utf(struct super_block *sb, const char *in, int in_len,
503 int in_len, char **out, int *out_len) in befs_utf2nls() argument
514 int maxlen = in_len + 1; in befs_utf2nls()
527 for (i = o = 0; i < in_len; i += utflen, o += unilen) { in befs_utf2nls()
530 utflen = utf8_to_utf32(&in[i], in_len - i, &uni); in befs_utf2nls()
537 unilen = nls->uni2char(uni, &result[o], in_len - o); in befs_utf2nls()
580 int in_len, char **out, int *out_len) in befs_nls2utf() argument
592 int maxlen = (3 * in_len) + 1; in befs_nls2utf()
608 for (i = o = 0; i < in_len; i += unilen, o += utflen) { in befs_nls2utf()
[all …]
/linux/include/linux/
H A Dpci-tsm.h58 sockptr_t req_in, size_t in_len,
217 sockptr_t req_in, size_t in_len, sockptr_t req_out,
236 sockptr_t req_in, size_t in_len, in pci_tsm_guest_req() argument
/linux/drivers/staging/rtl8723bs/core/
H A Drtw_ieee80211.c175 u8 *rtw_get_ie_ex(u8 *in_ie, uint in_len, u8 eid, u8 *oui, u8 oui_len, u8 *ie, uint *ielen) in rtw_get_ie_ex() argument
183 if (!in_ie || in_len <= 0) in rtw_get_ie_ex()
188 while (cnt < in_len) { in rtw_get_ie_ex()
563 int rtw_get_wapi_ie(u8 *in_ie, uint in_len, u8 *wapi_ie, u16 *wapi_len) in rtw_get_wapi_ie() argument
574 if (!in_ie || in_len <= 0) in rtw_get_wapi_ie()
579 while (cnt < in_len) { in rtw_get_wapi_ie()
603 void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie, u16 *wpa_len) in rtw_get_sec_ie() argument
613 while (cnt < in_len) { in rtw_get_sec_ie()
645 u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen) in rtw_get_wps_ie() argument
654 if (!in_ie || in_len <= 0) in rtw_get_wps_ie()
[all …]
/linux/drivers/platform/x86/dell/dell-wmi-sysman/
H A Dstring-attributes.c45 int in_len = strlen(buf); in validate_str_input() local
47 if ((in_len < wmi_priv.str_data[instance_id].min_length) || in validate_str_input()
48 (in_len > wmi_priv.str_data[instance_id].max_length)) in validate_str_input()
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py150 for in_len in range(max_len + 1):
151 out_len = (in_len * 293) % (max_len + 1)
152 out = hashlib.new(alg, data=in_data[:in_len]).digest(out_len)

123