| /linux/lib/crypto/tests/ |
| H A D | blake2b_kunit.c | 54 for (int out_len = 1; out_len <= BLAKE2B_HASH_SIZE; out_len++) { in test_blake2b_all_key_and_hash_lens() local 55 blake2b(key, key_len, data, data_len, hash, out_len); in test_blake2b_all_key_and_hash_lens() 56 blake2b_update(&main_ctx, hash, out_len); in test_blake2b_all_key_and_hash_lens() 105 for (int out_len = 1; out_len <= BLAKE2B_HASH_SIZE; out_len++) { in test_blake2b_with_guarded_out_buf() local 107 u8 *guarded_hash = &test_buf[TEST_BUF_LEN - out_len]; in test_blake2b_with_guarded_out_buf() 109 blake2b(NULL, 0, test_buf, data_len, hash, out_len); in test_blake2b_with_guarded_out_buf() 110 blake2b(NULL, 0, test_buf, data_len, guarded_hash, out_len); in test_blake2b_with_guarded_out_buf() 111 KUNIT_ASSERT_MEMEQ(test, hash, guarded_hash, out_len); in test_blake2b_with_guarded_out_buf()
|
| H A D | blake2s_kunit.c | 54 for (int out_len = 1; out_len <= BLAKE2S_HASH_SIZE; out_len++) { in test_blake2s_all_key_and_hash_lens() local 55 blake2s(key, key_len, data, data_len, hash, out_len); in test_blake2s_all_key_and_hash_lens() 56 blake2s_update(&main_ctx, hash, out_len); in test_blake2s_all_key_and_hash_lens() 105 for (int out_len = 1; out_len <= BLAKE2S_HASH_SIZE; out_len++) { in test_blake2s_with_guarded_out_buf() local 107 u8 *guarded_hash = &test_buf[TEST_BUF_LEN - out_len]; in test_blake2s_with_guarded_out_buf() 109 blake2s(NULL, 0, test_buf, data_len, hash, out_len); in test_blake2s_with_guarded_out_buf() 110 blake2s(NULL, 0, test_buf, data_len, guarded_hash, out_len); in test_blake2s_with_guarded_out_buf() 111 KUNIT_ASSERT_MEMEQ(test, hash, guarded_hash, out_len); in test_blake2s_with_guarded_out_buf()
|
| H A D | sha3_kunit.c | 250 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() 286 size_t out_len = (in_len * 293) % (max_len + 1); in test_shake_all_lens_up_to_4096() local 288 shake(alg, in, in_len, out, out_len); in test_shake_all_lens_up_to_4096() 289 sha3_update(&main_ctx, out, out_len); in test_shake_all_lens_up_to_4096() 322 const size_t out_len = rand_length(max_len); in test_shake_multiple_squeezes() local 324 const size_t out_offs = rand_offset(max_len - out_len); in test_shake_multiple_squeezes() 331 rand_bytes(out, out_len); in test_shake_multiple_squeezes() 334 shake(alg, in, in_len, ref_out, out_len); in test_shake_multiple_squeezes() [all …]
|
| /linux/lib/ |
| H A D | decompress_inflate.c | 45 unsigned char *out_buf, long out_len, in __gunzip() argument 54 out_len = 0x8000; /* 32 K */ in __gunzip() 55 out_buf = malloc(out_len); in __gunzip() 57 if (!out_len) in __gunzip() 58 out_len = ((size_t)~0) - (size_t)out_buf; /* no limit */ in __gunzip() 131 strm->avail_out = out_len; in __gunzip() 167 strm->avail_out = out_len; in __gunzip() 213 unsigned char *out_buf, long out_len, in __decompress() argument 217 return __gunzip(buf, len, fill, flush, out_buf, out_len, pos, error); in __decompress()
|
| H A D | decompress_unzstd.c | 126 long out_len, long *in_pos, in decompress_single() argument 150 ret = zstd_decompress_dctx(dctx, out_buf, out_len, in_buf, in_len); in decompress_single() 168 unsigned char *out_buf, long out_len, in __unzstd() argument 188 if (out_len == 0) in __unzstd() 189 out_len = UINTPTR_MAX - (uintptr_t)out_buf; in __unzstd() 196 return decompress_single(in_buf, in_len, out_buf, out_len, in __unzstd() 235 out_len = ZSTD_IOBUF_SIZE; in __unzstd() 240 out.size = out_len; in __unzstd() 346 unsigned char *out_buf, long out_len, in __decompress() argument 350 return __unzstd(buf, len, fill, flush, out_buf, out_len, pos, error); in __decompress()
|
| H A D | decompress_unlz4.c | 45 size_t out_len = get_unaligned_le32(input + in_len); in unlz4() local 154 if (out_len >= uncomp_chunksize) { in unlz4() 156 out_len -= dest_len; in unlz4() 158 dest_len = out_len; in unlz4() 210 unsigned char *output, long out_len, in __decompress() argument
|
| /linux/fs/ubifs/ |
| H A D | crypto.c | 39 unsigned int in_len, unsigned int *out_len, int block) in ubifs_encrypt() argument 46 ubifs_assert(c, pad_len <= *out_len); in ubifs_encrypt() 59 *out_len = pad_len; in ubifs_encrypt() 65 unsigned int *out_len, int block) in ubifs_decrypt() argument 70 unsigned int dlen = *out_len; in ubifs_decrypt() 85 *out_len = clen; in ubifs_decrypt()
|
| /linux/drivers/infiniband/core/ |
| H A D | ucma.c | 376 int in_len, int out_len) in ucma_get_event() argument 385 if (out_len < sizeof(uevent->resp) - sizeof(uevent->resp.reserved) - in ucma_get_event() 410 min_t(size_t, out_len, sizeof(uevent->resp)))) { in ucma_get_event() 446 int in_len, int out_len) in ucma_create_id() argument 455 if (out_len < sizeof(resp)) in ucma_create_id() 598 int in_len, int out_len) in ucma_destroy_id() argument 605 if (out_len < sizeof(resp)) in ucma_destroy_id() 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 [all …]
|
| /linux/crypto/ |
| H A D | zstd.c | 81 size_t out_len; in zstd_compress_one() local 87 out_len = zstd_compress_cctx(ctx->cctx, dst, req->dlen, src, req->slen, in zstd_compress_one() 89 if (zstd_is_error(out_len)) in zstd_compress_one() 92 *dlen = out_len; in zstd_compress_one() 193 size_t out_len; in zstd_decompress_one() local 199 out_len = zstd_decompress_dctx(ctx->dctx, dst, req->dlen, src, req->slen); in zstd_decompress_one() 200 if (zstd_is_error(out_len)) in zstd_decompress_one() 203 *dlen = out_len; in zstd_decompress_one()
|
| /linux/tools/perf/util/ |
| H A D | demangle-rust-v0.c | 115 size_t out_len; member 211 if (printer.out_len < OVERFLOW_MARGIN) { in rust_demangle_v0_display_demangle() 301 …char *punycode_start, size_t punycode_len, uint32_t (*out_)[SMALL_PUNYCODE_LEN], size_t *out_len) { in punycode_decode() argument 377 *out_len = len; in punycode_decode() 402 …size_t ascii_len, const char *punycode_start, size_t punycode_len, uint8_t *out, size_t *out_len) { in display_ident() argument 406 size_t out_buflen = *out_len; in display_ident() 413 *out_len = ascii_len; in display_ident() 423 *out_len = narrow_len; in display_ident() 447 *out_len = narrow_len; in display_ident() 542 …es_to_string_status nibbles_to_string(const char *buf, size_t len, uint8_t *out, size_t *out_len) { in nibbles_to_string() argument [all …]
|
| /linux/drivers/virt/coco/tdx-guest/ |
| H A D | tdx-guest.c | 191 u32 out_len; member 274 u32 out_len; in tdx_report_new_locked() local 317 out_len = READ_ONCE(quote_buf->out_len); in tdx_report_new_locked() 319 if (out_len > TDX_QUOTE_MAX_LEN) in tdx_report_new_locked() 322 buf = kvmemdup(quote_buf->data, out_len, GFP_KERNEL); in tdx_report_new_locked() 327 report->outblob_len = out_len; in tdx_report_new_locked()
|
| /linux/security/keys/ |
| H A D | keyctl_pkey.c | 139 uparams.out_len > info.max_enc_size) in keyctl_pkey_params_get_2() 142 params->out_len = info.max_enc_size; in keyctl_pkey_params_get_2() 146 uparams.out_len > info.max_dec_size) in keyctl_pkey_params_get_2() 149 params->out_len = info.max_dec_size; in keyctl_pkey_params_get_2() 153 uparams.out_len > info.max_sig_size) in keyctl_pkey_params_get_2() 156 params->out_len = info.max_sig_size; in keyctl_pkey_params_get_2() 163 params->out_len = info.max_sig_size; in keyctl_pkey_params_get_2() 259 out = kmalloc(params.out_len, GFP_KERNEL); in keyctl_pkey_e_d_s()
|
| /linux/drivers/platform/x86/tuxedo/nb04/ |
| H A D | wmi_util.c | 50 acpi_size out_len) in __wmi_method_buffer_out() argument 67 if (acpi_object_out->buffer.length < out_len) { in __wmi_method_buffer_out() 72 memcpy(out, acpi_object_out->buffer.pointer, out_len); in __wmi_method_buffer_out()
|
| /linux/lib/crypto/ |
| H A D | sha3.c | 245 void shake_squeeze(struct shake_ctx *shake_ctx, u8 *out, size_t out_len) in shake_squeeze() argument 267 while (out_len) { in shake_squeeze() 272 size_t copy = min(out_len, block_size - squeeze_offset); in shake_squeeze() 276 out_len -= copy; in shake_squeeze() 360 void shake128(const u8 *in, size_t in_len, u8 *out, size_t out_len) in shake128() argument 366 shake_squeeze(&ctx, out, out_len); in shake128() 371 void shake256(const u8 *in, size_t in_len, u8 *out, size_t out_len) in shake256() argument 377 shake_squeeze(&ctx, out, out_len); in shake256()
|
| /linux/fs/squashfs/ |
| H A D | lzo_wrapper.c | 74 size_t out_len = output->length; in lzo_uncompress() local 87 stream->output, &out_len); in lzo_uncompress() 91 res = bytes = (int)out_len; in lzo_uncompress()
|
| /linux/drivers/fwctl/mlx5/ |
| H A D | main.c | 307 void *rpc_in, size_t in_len, size_t *out_len) in mlx5ctl_fw_rpc() argument 317 *out_len < MLX5_ST_SZ_BYTES(mbox_out_hdr)) in mlx5ctl_fw_rpc() 322 in_len, *out_len); in mlx5ctl_fw_rpc() 331 if (*out_len <= in_len) { in mlx5ctl_fw_rpc() 334 rpc_out = kvzalloc(*out_len, GFP_KERNEL); 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/net/ethernet/sfc/ |
| H A D | tx_tso.c | 59 unsigned int out_len; member 196 st->out_len = skb->len - header_len; in tso_start() 250 st->out_len -= n; in tso_fill_packet_with_fragment() 255 if (st->out_len == 0) { in tso_fill_packet_with_fragment() 291 bool is_last = st->out_len <= skb_shinfo(skb)->gso_size; in tso_start_new_packet() 298 st->packet_space = st->out_len; in tso_start_new_packet()
|
| /linux/scripts/kconfig/ |
| H A D | preprocess.c | 507 size_t in_len, out_len; in __expand_string() local 511 out_len = 1; in __expand_string() 520 out_len += in_len + strlen(expansion); in __expand_string() 521 out = xrealloc(out, out_len); in __expand_string() 536 out_len += in_len; in __expand_string() 537 out = xrealloc(out, out_len); in __expand_string()
|
| /linux/include/crypto/ |
| H A D | sha3.h | 262 void shake_squeeze(struct shake_ctx *ctx, u8 *out, size_t out_len); 329 void shake128(const u8 *in, size_t in_len, u8 *out, size_t out_len); 344 void shake256(const u8 *in, size_t in_len, u8 *out, size_t out_len);
|
| /linux/lib/crypto/s390/ |
| H A D | sha3.h | 65 u8 *out, size_t out_len) in s390_sha3() argument 80 kmsan_unpoison_memory(&state, out_len); in s390_sha3() 82 memcpy(out, &state, out_len); in s390_sha3()
|
| /linux/include/linux/ |
| H A D | pci-tsm.h | 59 sockptr_t req_out, size_t out_len, 218 size_t out_len, u64 *tsm_code); 237 sockptr_t req_out, size_t out_len, in pci_tsm_guest_req() argument
|
| H A D | keyctl.h | 36 __u32 out_len; /* Output buffer size (enc/dec/sign) */ member
|
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 222 out_len = (in_len * 293) % (max_len + 1) 223 out = hashlib.new(alg, data=in_data[:in_len]).digest(out_len) 250 for out_len in range(1, max_hash_size + 1): 251 h = hashlib.new(alg, digest_size=out_len, key=rand_bytes(key_len))
|
| /linux/security/selinux/ss/ |
| H A D | sidtab.h | 145 u32 *out_len); 154 u32 *out_len) in sidtab_sid2str_get() argument
|
| /linux/drivers/media/pci/ngene/ |
| H A D | ngene-i2c.c | 43 com.out_len = inlen + 1; in ngene_command_i2c_read() 69 com.out_len = 1; in ngene_command_i2c_write()
|