Home
last modified time | relevance | path

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

12

/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()
H A Ddecompress_unlzma.c539 STATIC inline int INIT unlzma(unsigned char *buf, long in_len, in unlzma() argument
580 rc_init(&rc, fill, inbuf, in_len); in unlzma()
672 STATIC int INIT __decompress(unsigned char *buf, long in_len, in __decompress() argument
679 return unlzma(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
291 sha3_256_arch(const u8 * in,size_t in_len,u8 out[SHA3_256_DIGEST_SIZE]) sha3_256_arch() argument
298 sha3_384_arch(const u8 * in,size_t in_len,u8 out[SHA3_384_DIGEST_SIZE]) sha3_384_arch() argument
305 sha3_512_arch(const u8 * in,size_t in_len,u8 out[SHA3_512_DIGEST_SIZE]) sha3_512_arch() argument
312 sha3_224(const u8 * in,size_t in_len,u8 out[SHA3_224_DIGEST_SIZE]) sha3_224() argument
324 sha3_256(const u8 * in,size_t in_len,u8 out[SHA3_256_DIGEST_SIZE]) sha3_256() argument
336 sha3_384(const u8 * in,size_t in_len,u8 out[SHA3_384_DIGEST_SIZE]) sha3_384() argument
348 sha3_512(const u8 * in,size_t in_len,u8 out[SHA3_512_DIGEST_SIZE]) sha3_512() argument
360 shake128(const u8 * in,size_t in_len,u8 * out,size_t out_len) shake128() argument
371 shake256(const u8 * in,size_t in_len,u8 * out,size_t out_len) shake256() 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/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()
283 for (size_t in_len = 0; in_len <= max_len; in_len++) { in test_shake_all_lens_up_to_4096()
284 size_t out_len = (in_len * 293) % (max_len + 1); in test_shake_all_lens_up_to_4096()
286 shake(alg, in, in_len, out, out_len); in test_shake_all_lens_up_to_4096()
315 const size_t in_len = rand_length(max_len); in test_shake_multiple_squeezes()
317 const size_t in_offs = rand_offset(max_len - in_len); in test_shake_multiple_squeezes()
285 for (size_t in_len = 0; in_len <= max_len; in_len++) { test_shake_all_lens_up_to_4096() local
321 const size_t in_len = rand_length(max_len); test_shake_multiple_squeezes() local
[all...]
/linux/net/ceph/
H A Dcrypto.c265 void *buf, int buf_len, int in_len, int *pout_len) in ceph_aes_crypt() argument
271 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
272 int crypt_len = encrypt ? in_len + pad_byte : in_len; in ceph_aes_crypt()
277 memset(buf + in_len, pad_byte, pad_byte); in ceph_aes_crypt()
311 pad_byte = *(char *)(buf + in_len - 1); in ceph_aes_crypt()
313 in_len >= pad_byte) { in ceph_aes_crypt()
314 *pout_len = in_len - pad_byte; in ceph_aes_crypt()
317 __func__, pad_byte, in_len); in ceph_aes_crypt()
329 void *buf, int buf_len, int in_len, int *pout_len) in ceph_krb5_encrypt() argument
344 in_len, false); in ceph_krb5_encrypt()
[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/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/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()
145 if (uparams.in_len > info.max_enc_size || in keyctl_pkey_params_get_2()
152 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
159 if (uparams.in_len > info.max_data_size || in keyctl_pkey_params_get_2()
169 params->in_len = uparams.in_len; in keyctl_pkey_query()
252 in = memdup_user(_in, params.in_len); in keyctl_pkey_e_d_s()
314 in = memdup_user(_in, params.in_len); in keyctl_pkey_verify()
/linux/fs/btrfs/
H A Dlzo.c296 u32 in_len; in lzo_compress_bio() local
307 in_len = min_t(u32, start + len - cur_in, sectorsize - sector_off); in lzo_compress_bio()
308 ASSERT(in_len); in lzo_compress_bio()
310 ret = lzo1x_1_compress(data_in, in_len, workspace->cbuf, &out_len, in lzo_compress_bio()
324 cur_in += in_len; in lzo_compress_bio()
550 size_t in_len; in lzo_decompress() local
562 in_len = get_unaligned_le32(data_in); in lzo_decompress()
563 if (unlikely(in_len != srclen)) { in lzo_decompress()
565 in_len, srclen); in lzo_decompress()
570 in_len = get_unaligned_le32(data_in); in lzo_decompress()
[all …]
/linux/net/tls/
H A Dtls_device_fallback.c44 struct scatter_walk *out, int *in_len, in tls_enc_record() argument
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()
[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/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/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
H A Dkeyctl.h34 __u32 in_len; /* Input data size */ member
/linux/drivers/fwctl/mlx5/
H A Dmain.c307 void *rpc_in, size_t in_len, size_t *out_len) in mlx5ctl_fw_rpc() argument
316 if (in_len < MLX5_ST_SZ_BYTES(mbox_in_hdr) || in mlx5ctl_fw_rpc()
322 in_len, *out_len); in mlx5ctl_fw_rpc()
331 if (*out_len <= in_len) { in mlx5ctl_fw_rpc()
341 ret = mlx5_cmd_do(mcdev->mdev, rpc_in, in_len, rpc_out, *out_len); in mlx5ctl_fw_rpc()
/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/drivers/platform/x86/hp/hp-bioscfg/
H A Dstring-attributes.c35 int in_len = strlen(buf); in validate_string_input() local
42 if (in_len < string_data->min_length || in_len > string_data->max_length) in validate_string_input()
/linux/drivers/nvdimm/
H A Dbus.c1033 u32 in_len = 0, out_len = 0; in __nd_ioctl() local
1108 if (in_len < ND_CMD_MAX_ENVELOPE) in __nd_ioctl()
1109 copy = min_t(u32, ND_CMD_MAX_ENVELOPE - in_len, in_size); in __nd_ioctl()
1112 if (copy && copy_from_user(&in_env[in_len], p + in_len, copy)) in __nd_ioctl()
1114 in_len += in_size; in __nd_ioctl()
1121 in_len, out_len, buf_len); in __nd_ioctl()
1144 p + in_len + out_len, copy)) { in __nd_ioctl()
1150 buf_len = (u64) out_len + (u64) in_len; in __nd_ioctl()
/linux/drivers/media/pci/ngene/
H A Dngene-i2c.c42 com.in_len = outlen + 3; in ngene_command_i2c_read()
68 com.in_len = outlen + 1; in ngene_command_i2c_write()
/linux/scripts/crypto/
H A Dgen-hash-testvecs.py221 for in_len in range(max_len + 1):
222 out_len = (in_len * 293) % (max_len + 1)
223 out = hashlib.new(alg, data=in_data[:in_len]).digest(out_len)

12