Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 81) sorted by relevance

1234

/crypto/
Dscatterwalk.c18 static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument
20 void *src = out ? buf : sgdata; in memcpy_dir()
21 void *dst = out ? sgdata : buf; in memcpy_dir()
27 size_t nbytes, int out) in scatterwalk_copychunks() argument
36 if (out != 2) { in scatterwalk_copychunks()
38 memcpy_dir(buf, vaddr, len_this_page, out); in scatterwalk_copychunks()
50 scatterwalk_pagedone(walk, out & 1, 1); in scatterwalk_copychunks()
56 unsigned int start, unsigned int nbytes, int out) in scatterwalk_map_and_copy() argument
67 scatterwalk_copychunks(buf, &walk, nbytes, out); in scatterwalk_map_and_copy()
68 scatterwalk_done(&walk, out, 0); in scatterwalk_map_and_copy()
Dtea.c63 __le32 *out = (__le32 *)dst; in tea_encrypt() local
81 out[0] = cpu_to_le32(y); in tea_encrypt()
82 out[1] = cpu_to_le32(z); in tea_encrypt()
91 __le32 *out = (__le32 *)dst; in tea_decrypt() local
111 out[0] = cpu_to_le32(y); in tea_decrypt()
112 out[1] = cpu_to_le32(z); in tea_decrypt()
136 __le32 *out = (__le32 *)dst; in xtea_encrypt() local
147 out[0] = cpu_to_le32(y); in xtea_encrypt()
148 out[1] = cpu_to_le32(z); in xtea_encrypt()
156 __le32 *out = (__le32 *)dst; in xtea_decrypt() local
[all …]
Dcrct10dif_generic.c60 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument
64 *(__u16 *)out = ctx->crc; in chksum_final()
68 static int __chksum_finup(__u16 crc, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument
70 *(__u16 *)out = crc_t10dif_generic(crc, data, len); in __chksum_finup()
75 unsigned int len, u8 *out) in chksum_finup() argument
79 return __chksum_finup(ctx->crc, data, len, out); in chksum_finup()
83 unsigned int length, u8 *out) in chksum_digest() argument
85 return __chksum_finup(0, data, length, out); in chksum_digest()
Dcrc32_generic.c92 u8 *out) in __crc32_finup() argument
94 put_unaligned_le32(crc32_le(*crcp, data, len), out); in __crc32_finup()
99 unsigned int len, u8 *out) in crc32_finup() argument
101 return __crc32_finup(shash_desc_ctx(desc), data, len, out); in crc32_finup()
104 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() argument
108 put_unaligned_le32(*crcp, out); in crc32_final()
113 unsigned int len, u8 *out) in crc32_digest() argument
116 out); in crc32_digest()
Ddeflate.c51 goto out; in deflate_comp_init()
64 out: in deflate_comp_init()
68 goto out; in deflate_comp_init()
79 goto out; in deflate_decomp_init()
89 out: in deflate_decomp_init()
93 goto out; in deflate_decomp_init()
114 goto out; in __deflate_init()
118 out: in __deflate_init()
186 goto out; in __deflate_compress()
197 goto out; in __deflate_compress()
[all …]
Dshash.c124 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned() argument
143 goto out; in shash_final_unaligned()
145 memcpy(out, buf, ds); in shash_final_unaligned()
147 out: in shash_final_unaligned()
152 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final() argument
158 if ((unsigned long)out & alignmask) in crypto_shash_final()
159 return shash_final_unaligned(desc, out); in crypto_shash_final()
161 return shash->final(desc, out); in crypto_shash_final()
166 unsigned int len, u8 *out) in shash_finup_unaligned() argument
169 crypto_shash_final(desc, out); in shash_finup_unaligned()
[all …]
Dcrc32c_generic.c94 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument
98 put_unaligned_le32(~ctx->crc, out); in chksum_final()
102 static int __chksum_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument
104 put_unaligned_le32(~__crc32c_le(*crcp, data, len), out); in __chksum_finup()
109 unsigned int len, u8 *out) in chksum_finup() argument
113 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup()
117 unsigned int length, u8 *out) in chksum_digest() argument
121 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest()
Dhmac.c83 static int hmac_export(struct shash_desc *pdesc, void *out) in hmac_export() argument
87 return crypto_shash_export(desc, out); in hmac_export()
113 static int hmac_final(struct shash_desc *pdesc, u8 *out) in hmac_final() argument
121 return crypto_shash_final(desc, out) ?: in hmac_final()
123 crypto_shash_finup(desc, out, ds, out); in hmac_final()
127 unsigned int nbytes, u8 *out) in hmac_finup() argument
136 return crypto_shash_finup(desc, data, nbytes, out) ?: in hmac_finup()
138 crypto_shash_finup(desc, out, ds, out); in hmac_finup()
Daes_generic.c1182 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument
1215 put_unaligned_le32(b0[0], out); in crypto_aes_encrypt()
1216 put_unaligned_le32(b0[1], out + 4); in crypto_aes_encrypt()
1217 put_unaligned_le32(b0[2], out + 8); in crypto_aes_encrypt()
1218 put_unaligned_le32(b0[3], out + 12); in crypto_aes_encrypt()
1252 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() argument
1285 put_unaligned_le32(b0[0], out); in crypto_aes_decrypt()
1286 put_unaligned_le32(b0[1], out + 4); in crypto_aes_decrypt()
1287 put_unaligned_le32(b0[2], out + 8); in crypto_aes_decrypt()
1288 put_unaligned_le32(b0[3], out + 12); in crypto_aes_decrypt()
Dablkcipher.c55 p->dst = walk->out; in ablkcipher_queue_write()
73 unsigned int len_this_page = scatterwalk_pagelen(&walk->out); in ablkcipher_done_slow()
77 scatterwalk_advance(&walk->out, n); in ablkcipher_done_slow()
81 scatterwalk_start(&walk->out, sg_next(walk->out.sg)); in ablkcipher_done_slow()
89 scatterwalk_advance(&walk->out, n); in ablkcipher_done_fast()
121 scatterwalk_done(&walk->out, 1, more); in ablkcipher_walk_done()
207 walk->dst.page = scatterwalk_page(&walk->out); in ablkcipher_next_fast()
208 walk->dst.offset = offset_in_page(walk->out.offset); in ablkcipher_next_fast()
233 n = scatterwalk_clamp(&walk->out, n); in ablkcipher_walk_next()
237 !scatterwalk_aligned(&walk->out, alignmask)) { in ablkcipher_walk_next()
[all …]
Daes_ti.c20 static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_encrypt() argument
31 aes_encrypt(ctx, out, in); in aesti_encrypt()
36 static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_decrypt() argument
47 aes_decrypt(ctx, out, in); in aesti_decrypt()
Dsha1_generic.c50 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final() argument
53 return sha1_base_finish(desc, out); in sha1_final()
57 unsigned int len, u8 *out) in crypto_sha1_finup() argument
60 return sha1_final(desc, out); in crypto_sha1_finup()
Dsm4_generic.c172 static void sm4_do_crypt(const u32 *rk, u32 *out, const u32 *in) in sm4_do_crypt() argument
188 put_unaligned_be32(x[3 - i], &out[i]); in sm4_do_crypt()
193 void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_encrypt() argument
197 sm4_do_crypt(ctx->rkey_enc, (u32 *)out, (u32 *)in); in crypto_sm4_encrypt()
203 void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_decrypt() argument
207 sm4_do_crypt(ctx->rkey_dec, (u32 *)out, (u32 *)in); in crypto_sm4_decrypt()
Dtcrypt.c198 goto out; in test_mb_aead_jiffies()
204 out: in test_mb_aead_jiffies()
225 goto out; in test_mb_aead_cycles()
237 goto out; in test_mb_aead_cycles()
245 out: in test_mb_aead_cycles()
343 goto out; in test_mb_aead_speed()
366 goto out; in test_mb_aead_speed()
433 out: in test_mb_aead_speed()
490 goto out; in test_aead_cycles()
505 goto out; in test_aead_cycles()
[all …]
Dxxhash_generic.c53 static int xxhash64_final(struct shash_desc *desc, u8 *out) in xxhash64_final() argument
57 put_unaligned_le64(xxh64_digest(&dctx->xxhstate), out); in xxhash64_final()
63 unsigned int length, u8 *out) in xxhash64_digest() argument
67 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
Dzstd.c41 goto out; in zstd_comp_init()
49 out: in zstd_comp_init()
53 goto out; in zstd_comp_init()
64 goto out; in zstd_decomp_init()
72 out: in zstd_decomp_init()
76 goto out; in zstd_decomp_init()
Ddrbg.c319 unsigned char *out, const unsigned char *key, in drbg_ctr_bcc() argument
327 drbg_string_fill(&data, out, drbg_blocklen(drbg)); in drbg_ctr_bcc()
339 ret = drbg_kcapi_sym(drbg, out, &data); in drbg_ctr_bcc()
343 out[cnt] ^= *pos; in drbg_ctr_bcc()
351 ret = drbg_kcapi_sym(drbg, out, &data); in drbg_ctr_bcc()
473 goto out; in drbg_ctr_df()
496 goto out; in drbg_ctr_df()
508 out: in drbg_ctr_df()
555 goto out; in drbg_ctr_update()
562 goto out; in drbg_ctr_update()
[all …]
Dtestmgr.c1000 char *out = driver_name; in build_generic_driver_name() local
1009 *out++ = *in++; in build_generic_driver_name()
1014 memcpy(out, "-generic", 8); in build_generic_driver_name()
1015 out += 8; in build_generic_driver_name()
1017 } while ((*out++ = *in++) != '\0'); in build_generic_driver_name()
1599 goto out; in test_hash_vs_generic_impl()
1606 goto out; in test_hash_vs_generic_impl()
1617 goto out; in test_hash_vs_generic_impl()
1624 goto out; in test_hash_vs_generic_impl()
1637 goto out; in test_hash_vs_generic_impl()
[all …]
Dcryptd.c241 out: in cryptd_alloc_instance()
247 goto out; in cryptd_alloc_instance()
294 goto out; in cryptd_skcipher_encrypt()
307 out: in cryptd_skcipher_encrypt()
322 goto out; in cryptd_skcipher_decrypt()
335 out: in cryptd_skcipher_decrypt()
543 goto out; in cryptd_hash_init()
551 out: in cryptd_hash_init()
568 goto out; in cryptd_hash_update()
574 out: in cryptd_hash_update()
[all …]
Dcrypto_engine.c78 goto out; in crypto_pump_requests()
83 goto out; in crypto_pump_requests()
89 goto out; in crypto_pump_requests()
95 goto out; in crypto_pump_requests()
108 goto out; in crypto_pump_requests()
115 goto out; in crypto_pump_requests()
164 out: in crypto_pump_requests()
Dauthenc.c104 goto out; in crypto_authenc_setkey()
113 out: in crypto_authenc_setkey()
119 goto out; in crypto_authenc_setkey()
132 goto out; in authenc_geniv_ahash_done()
138 out: in authenc_geniv_ahash_done()
179 goto out; in crypto_authenc_encrypt_done()
183 out: in crypto_authenc_encrypt_done()
280 goto out; in authenc_verify_ahash_done()
284 out: in authenc_verify_ahash_done()
476 out: in crypto_authenc_create()
[all …]
Dsha256_generic.c53 static int crypto_sha256_final(struct shash_desc *desc, u8 *out) in crypto_sha256_final() argument
56 return sha224_final(shash_desc_ctx(desc), out); in crypto_sha256_final()
58 return sha256_final(shash_desc_ctx(desc), out); in crypto_sha256_final()
Dproc.c55 goto out; in c_show()
60 goto out; in c_show()
80 out: in c_show()
Drng.c45 goto out; in crypto_rng_reset()
51 out: in crypto_rng_reset()
162 goto out; in crypto_del_default_rng()
169 out: in crypto_del_default_rng()
/crypto/asymmetric_keys/
Dasym_tpm.c121 void *out, uint32_t outlen) in tpm_unbind() argument
188 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_unbind()
207 void *out, uint32_t outlen) in tpm_sign() argument
274 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_sign()
461 const void *in, void *out) in tpm_key_encrypt() argument
495 sg_init_one(&out_sg, out, params->out_len); in tpm_key_encrypt()
521 const void *in, void *out) in tpm_key_decrypt() argument
555 in, params->in_len, out, params->out_len); in tpm_key_decrypt()
645 const void *in, void *out) in tpm_key_sign() argument
703 r = tpm_sign(tb, keyhandle, keyauth, in, in_len, out, params->out_len); in tpm_key_sign()
[all …]

1234