| /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/btrfs/ |
| H A D | lzo.c | 251 size_t out_len; in lzo_compress_folios() local 265 workspace->cbuf, &out_len, in lzo_compress_folios() 274 ret = copy_compressed_data_to_page(fs_info, workspace->cbuf, out_len, in lzo_compress_folios() 383 size_t out_len = lzo1x_worst_compress(sectorsize); in lzo_decompress_bio() local 417 workspace->buf, &out_len); in lzo_decompress_bio() 429 ret = btrfs_decompress_buf2page(workspace->buf, out_len, cb, cur_out); in lzo_decompress_bio() 430 cur_out += out_len; in lzo_decompress_bio() 457 size_t out_len; in lzo_decompress() local 476 out_len = sectorsize; in lzo_decompress() 477 ret = lzo1x_decompress_safe(data_in, in_len, workspace->buf, &out_len); in lzo_decompress() [all …]
|
| /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/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/cxl/core/ |
| H A D | features.c | 388 size_t *out_len) in cxlctl_get_supported_features() argument 450 *out_len = out_size; in cxlctl_get_supported_features() 457 size_t *out_len) in cxlctl_get_feature() argument 462 size_t out_size = *out_len; in cxlctl_get_feature() 482 *out_len = sizeof(struct fwctl_rpc_cxl_out); in cxlctl_get_feature() 491 *out_len += out_size; in cxlctl_get_feature() 498 size_t *out_len) in cxlctl_set_feature() argument 517 out_size = *out_len; in cxlctl_set_feature() 530 *out_len = sizeof(*rpc_out); in cxlctl_set_feature() 631 size_t *out_len, u16 opcode) in cxlctl_handle_commands() 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/drivers/fwctl/ |
| H A D | main.c | 90 size_t out_len; in fwctl_cmd_rpc() local 92 if (cmd->in_len > MAX_RPC_LEN || cmd->out_len > MAX_RPC_LEN) in fwctl_cmd_rpc() 123 out_len = cmd->out_len; in fwctl_cmd_rpc() 125 ucmd->uctx, cmd->scope, inbuf, cmd->in_len, &out_len); in fwctl_cmd_rpc() 134 min(cmd->out_len, out_len))) in fwctl_cmd_rpc() 137 cmd->out_len = out_len; in fwctl_cmd_rpc()
|
| /linux/security/keys/ |
| H A D | keyctl_pkey.c | 139 uparams.out_len > info.max_enc_size) in keyctl_pkey_params_get_2() 144 uparams.out_len > info.max_dec_size) in keyctl_pkey_params_get_2() 149 uparams.out_len > info.max_sig_size) in keyctl_pkey_params_get_2() 162 params->out_len = uparams.out_len; /* Note: same as in2_len */ in keyctl_pkey_params_get_2() 251 out = kmalloc(params.out_len, GFP_KERNEL); in keyctl_pkey_e_d_s()
|
| /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/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/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/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/fs/exfat/ |
| H A D | nls.c | 544 int i, j, len, out_len = 0; in __exfat_utf16_to_nls() local 550 while (i < MAX_NAME_LENGTH && out_len < (buflen - 1)) { in __exfat_utf16_to_nls() 576 if (out_len + len >= buflen) in __exfat_utf16_to_nls() 577 len = buflen - 1 - out_len; in __exfat_utf16_to_nls() 578 out_len += len; in __exfat_utf16_to_nls() 592 return out_len; in __exfat_utf16_to_nls()
|
| /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
|
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 151 out_len = (in_len * 293) % (max_len + 1) 152 out = hashlib.new(alg, data=in_data[:in_len]).digest(out_len) 179 for out_len in range(1, max_hash_size + 1): 180 h = hashlib.new(alg, digest_size=out_len, key=rand_bytes(key_len))
|
| /linux/drivers/staging/media/atomisp/pci/ |
| H A D | atomisp_gmin_platform.c | 1117 const char *var8, char *out, size_t *out_len) in gmin_get_hardcoded_var() argument 1130 if (vl > *out_len - 1) in gmin_get_hardcoded_var() 1133 strscpy(out, gv->val, *out_len); in gmin_get_hardcoded_var() 1134 *out_len = vl; in gmin_get_hardcoded_var() 1144 char *out, size_t *out_len) in gmin_get_config_dsm_var() argument 1217 strscpy(out, cur->string.pointer, *out_len); in gmin_get_config_dsm_var() 1218 *out_len = strlen(out); in gmin_get_config_dsm_var() 1231 char *out, size_t *out_len) in gmin_get_config_var() argument 1252 out, out_len); in gmin_get_config_var() 1259 ret = gmin_get_config_dsm_var(maindev, var, out, out_len); in gmin_get_config_var() [all …]
|