/crypto/ |
D | lz4.c | 54 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_compress_crypto() argument 57 slen, *dlen, ctx); in __lz4_compress_crypto() 62 *dlen = out_len; in __lz4_compress_crypto() 67 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4_scompress() argument 70 return __lz4_compress_crypto(src, slen, dst, dlen, ctx); in lz4_scompress() 74 unsigned int slen, u8 *dst, unsigned int *dlen) in lz4_compress_crypto() argument 78 return __lz4_compress_crypto(src, slen, dst, dlen, ctx->lz4_comp_mem); in lz4_compress_crypto() 82 u8 *dst, unsigned int *dlen, void *ctx) in __lz4_decompress_crypto() argument 84 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4_decompress_crypto() 89 *dlen = out_len; in __lz4_decompress_crypto() [all …]
|
D | lz4hc.c | 53 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_compress_crypto() argument 56 *dlen, LZ4HC_DEFAULT_CLEVEL, ctx); in __lz4hc_compress_crypto() 61 *dlen = out_len; in __lz4hc_compress_crypto() 66 unsigned int slen, u8 *dst, unsigned int *dlen, in lz4hc_scompress() argument 69 return __lz4hc_compress_crypto(src, slen, dst, dlen, ctx); in lz4hc_scompress() 74 unsigned int *dlen) in lz4hc_compress_crypto() argument 78 return __lz4hc_compress_crypto(src, slen, dst, dlen, in lz4hc_compress_crypto() 83 u8 *dst, unsigned int *dlen, void *ctx) in __lz4hc_decompress_crypto() argument 85 int out_len = LZ4_decompress_safe(src, dst, slen, *dlen); in __lz4hc_decompress_crypto() 90 *dlen = out_len; in __lz4hc_decompress_crypto() [all …]
|
D | lzo-rle.c | 53 u8 *dst, unsigned int *dlen, void *ctx) in __lzorle_compress() argument 55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_compress() 63 *dlen = tmp_len; in __lzorle_compress() 68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzorle_compress() argument 72 return __lzorle_compress(src, slen, dst, dlen, ctx->lzorle_comp_mem); in lzorle_compress() 76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzorle_scompress() argument 79 return __lzorle_compress(src, slen, dst, dlen, ctx); in lzorle_scompress() 83 u8 *dst, unsigned int *dlen) in __lzorle_decompress() argument 86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzorle_decompress() 93 *dlen = tmp_len; in __lzorle_decompress() [all …]
|
D | lzo.c | 53 u8 *dst, unsigned int *dlen, void *ctx) in __lzo_compress() argument 55 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_compress() 63 *dlen = tmp_len; in __lzo_compress() 68 unsigned int slen, u8 *dst, unsigned int *dlen) in lzo_compress() argument 72 return __lzo_compress(src, slen, dst, dlen, ctx->lzo_comp_mem); in lzo_compress() 76 unsigned int slen, u8 *dst, unsigned int *dlen, in lzo_scompress() argument 79 return __lzo_compress(src, slen, dst, dlen, ctx); in lzo_scompress() 83 u8 *dst, unsigned int *dlen) in __lzo_decompress() argument 86 size_t tmp_len = *dlen; /* size_t(ulong) <-> uint on 64 bit */ in __lzo_decompress() 93 *dlen = tmp_len; in __lzo_decompress() [all …]
|
D | zstd.c | 151 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_compress() argument 157 out_len = ZSTD_compressCCtx(zctx->cctx, dst, *dlen, src, slen, params); in __zstd_compress() 160 *dlen = out_len; in __zstd_compress() 165 unsigned int slen, u8 *dst, unsigned int *dlen) in zstd_compress() argument 169 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_compress() 173 unsigned int slen, u8 *dst, unsigned int *dlen, in zstd_scompress() argument 176 return __zstd_compress(src, slen, dst, dlen, ctx); in zstd_scompress() 180 u8 *dst, unsigned int *dlen, void *ctx) in __zstd_decompress() argument 185 out_len = ZSTD_decompressDCtx(zctx->dctx, dst, *dlen, src, slen); in __zstd_decompress() 188 *dlen = out_len; in __zstd_decompress() [all …]
|
D | 842.c | 67 u8 *dst, unsigned int *dlen) in crypto842_compress() argument 71 return sw842_compress(src, slen, dst, dlen, ctx->wmem); in crypto842_compress() 76 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_scompress() argument 78 return sw842_compress(src, slen, dst, dlen, ctx); in crypto842_scompress() 83 u8 *dst, unsigned int *dlen) in crypto842_decompress() argument 85 return sw842_decompress(src, slen, dst, dlen); in crypto842_decompress() 90 u8 *dst, unsigned int *dlen, void *ctx) in crypto842_sdecompress() argument 92 return sw842_decompress(src, slen, dst, dlen); in crypto842_sdecompress()
|
D | deflate.c | 177 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_compress() argument 192 stream->avail_out = *dlen; in __deflate_compress() 200 *dlen = stream->total_out; in __deflate_compress() 206 unsigned int slen, u8 *dst, unsigned int *dlen) in deflate_compress() argument 210 return __deflate_compress(src, slen, dst, dlen, dctx); in deflate_compress() 214 unsigned int slen, u8 *dst, unsigned int *dlen, in deflate_scompress() argument 217 return __deflate_compress(src, slen, dst, dlen, ctx); in deflate_scompress() 221 u8 *dst, unsigned int *dlen, void *ctx) in __deflate_decompress() argument 237 stream->avail_out = *dlen; in __deflate_decompress() 256 *dlen = stream->total_out; in __deflate_decompress() [all …]
|
D | compress.c | 17 u8 *dst, unsigned int *dlen) in crypto_compress() argument 20 dlen); in crypto_compress() 25 u8 *dst, unsigned int *dlen) in crypto_decompress() argument 28 dlen); in crypto_decompress()
|
D | scompress.c | 132 if (req->dst && !req->dlen) in scomp_acomp_comp_decomp() 135 if (!req->dlen || req->dlen > SCOMP_SCRATCH_SIZE) in scomp_acomp_comp_decomp() 136 req->dlen = SCOMP_SCRATCH_SIZE; in scomp_acomp_comp_decomp() 144 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp() 147 scratch->dst, &req->dlen, *ctx); in scomp_acomp_comp_decomp() 150 req->dst = sgl_alloc(req->dlen, GFP_ATOMIC, NULL); in scomp_acomp_comp_decomp() 156 scatterwalk_map_and_copy(scratch->dst, req->dst, 0, req->dlen, in scomp_acomp_comp_decomp()
|
D | crypto_null.c | 28 unsigned int slen, u8 *dst, unsigned int *dlen) in null_compress() argument 30 if (slen > *dlen) in null_compress() 33 *dlen = slen; in null_compress()
|
D | ansi_cprng.c | 350 u8 *rdata, unsigned int dlen) in cprng_get_random() argument 354 return get_prng_bytes(rdata, dlen, prng, 0); in cprng_get_random() 386 u8 *rdata, unsigned int dlen) in fips_cprng_get_random() argument 390 return get_prng_bytes(rdata, dlen, prng, 1); in fips_cprng_get_random()
|
D | jitterentropy-kcapi.c | 145 u8 *rdata, unsigned int dlen) in jent_kcapi_random() argument 151 ret = jent_read_entropy(rng->entropy_collector, rdata, dlen); in jent_kcapi_random()
|
D | testmgr.c | 2920 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local 2927 ilen, output, &dlen); in test_comp() 2935 ilen = dlen; in test_comp() 2936 dlen = COMP_BUF_SIZE; in test_comp() 2938 ilen, decomp_output, &dlen); in test_comp() 2945 if (dlen != ctemplate[i].inlen) { in test_comp() 2948 dlen); in test_comp() 2957 hexdump(decomp_output, dlen); in test_comp() 2965 unsigned int dlen = COMP_BUF_SIZE; in test_comp() local 2971 ilen, decomp_output, &dlen); in test_comp() [all …]
|
D | algapi.c | 1241 void crypto_stats_rng_generate(struct crypto_alg *alg, unsigned int dlen, in crypto_stats_rng_generate() argument 1248 atomic64_add(dlen, &alg->stats.rng.generate_tlen); in crypto_stats_rng_generate()
|
D | drbg.c | 1931 u8 *dst, unsigned int dlen) in drbg_kcapi_random() argument 1943 return drbg_generate_long(drbg, dst, dlen, addtl); in drbg_kcapi_random()
|