/crypto/ |
D | scatterwalk.c | 18 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()
|
D | tea.c | 63 __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 …]
|
D | crct10dif_generic.c | 60 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()
|
D | fips140-selftests.c | 245 goto out; in fips_test_skcipher() 249 goto out; in fips_test_skcipher() 256 goto out; in fips_test_skcipher() 267 goto out; in fips_test_skcipher() 275 goto out; in fips_test_skcipher() 280 goto out; in fips_test_skcipher() 287 goto out; in fips_test_skcipher() 291 out: in fips_test_skcipher() 323 goto out; in fips_test_aead() 327 goto out; in fips_test_aead() [all …]
|
D | crc32_generic.c | 90 u8 *out) in __crc32_finup() argument 92 put_unaligned_le32(crc32_le(*crcp, data, len), out); in __crc32_finup() 97 unsigned int len, u8 *out) in crc32_finup() argument 99 return __crc32_finup(shash_desc_ctx(desc), data, len, out); in crc32_finup() 102 static int crc32_final(struct shash_desc *desc, u8 *out) in crc32_final() argument 106 put_unaligned_le32(*crcp, out); in crc32_final() 111 unsigned int len, u8 *out) in crc32_digest() argument 114 out); in crc32_digest()
|
D | crc32c_generic.c | 92 static int chksum_final(struct shash_desc *desc, u8 *out) in chksum_final() argument 96 put_unaligned_le32(~ctx->crc, out); in chksum_final() 100 static int __chksum_finup(u32 *crcp, const u8 *data, unsigned int len, u8 *out) in __chksum_finup() argument 102 put_unaligned_le32(~__crc32c_le(*crcp, data, len), out); in __chksum_finup() 107 unsigned int len, u8 *out) in chksum_finup() argument 111 return __chksum_finup(&ctx->crc, data, len, out); in chksum_finup() 115 unsigned int length, u8 *out) in chksum_digest() argument 119 return __chksum_finup(&mctx->key, data, length, out); in chksum_digest()
|
D | shash.c | 135 static int shash_final_unaligned(struct shash_desc *desc, u8 *out) in shash_final_unaligned() argument 154 goto out; in shash_final_unaligned() 156 memcpy(out, buf, ds); in shash_final_unaligned() 158 out: in shash_final_unaligned() 163 int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final() argument 169 if ((unsigned long)out & alignmask) in crypto_shash_final() 170 return shash_final_unaligned(desc, out); in crypto_shash_final() 172 return shash->final(desc, out); in crypto_shash_final() 177 unsigned int len, u8 *out) in shash_finup_unaligned() argument 180 crypto_shash_final(desc, out); in shash_finup_unaligned() [all …]
|
D | deflate.c | 51 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 …]
|
D | hmac.c | 83 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()
|
D | geniv.c | 99 out: in aead_geniv_alloc() 105 goto out; in aead_geniv_alloc() 120 goto out; in aead_init_geniv() 126 goto out; in aead_init_geniv() 131 goto out; in aead_init_geniv() 144 out: in aead_init_geniv() 149 goto out; in aead_init_geniv()
|
D | fips140-module.c | 374 goto out; in check_fips140_module_hmac() 397 goto out; in check_fips140_module_hmac() 415 goto out; in check_fips140_module_hmac() 424 goto out; in check_fips140_module_hmac() 427 out: in check_fips140_module_hmac() 440 static void fips140_sha256(void *p, const u8 *data, unsigned int len, u8 *out, in fips140_sha256() argument 443 sha256(data, len, out); in fips140_sha256() 455 u8 *out, const u8 *in, int *hook_inuse) in fips140_aes_encrypt() argument 457 aes_encrypt(ctx, out, in); in fips140_aes_encrypt() 462 u8 *out, const u8 *in, int *hook_inuse) in fips140_aes_decrypt() argument [all …]
|
D | aes_generic.c | 1176 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_encrypt() argument 1209 put_unaligned_le32(b0[0], out); in crypto_aes_encrypt() 1210 put_unaligned_le32(b0[1], out + 4); in crypto_aes_encrypt() 1211 put_unaligned_le32(b0[2], out + 8); in crypto_aes_encrypt() 1212 put_unaligned_le32(b0[3], out + 12); in crypto_aes_encrypt() 1246 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_aes_decrypt() argument 1279 put_unaligned_le32(b0[0], out); in crypto_aes_decrypt() 1280 put_unaligned_le32(b0[1], out + 4); in crypto_aes_decrypt() 1281 put_unaligned_le32(b0[2], out + 8); in crypto_aes_decrypt() 1282 put_unaligned_le32(b0[3], out + 12); in crypto_aes_decrypt()
|
D | aes_ti.c | 20 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()
|
D | sm4_generic.c | 166 static void sm4_do_crypt(const u32 *rk, u32 *out, const u32 *in) in sm4_do_crypt() argument 182 put_unaligned_be32(x[3 - i], &out[i]); in sm4_do_crypt() 187 void crypto_sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_encrypt() argument 191 sm4_do_crypt(ctx->rkey_enc, (u32 *)out, (u32 *)in); in crypto_sm4_encrypt() 197 void crypto_sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in crypto_sm4_decrypt() argument 201 sm4_do_crypt(ctx->rkey_dec, (u32 *)out, (u32 *)in); in crypto_sm4_decrypt()
|
D | sha1_generic.c | 49 static int sha1_final(struct shash_desc *desc, u8 *out) in sha1_final() argument 52 return sha1_base_finish(desc, out); in sha1_final() 56 unsigned int len, u8 *out) in crypto_sha1_finup() argument 59 return sha1_final(desc, out); in crypto_sha1_finup()
|
D | tcrypt.c | 199 goto out; in test_mb_aead_jiffies() 205 out: in test_mb_aead_jiffies() 226 goto out; in test_mb_aead_cycles() 238 goto out; in test_mb_aead_cycles() 246 out: in test_mb_aead_cycles() 344 goto out; in test_mb_aead_speed() 367 goto out; in test_mb_aead_speed() 434 out: in test_mb_aead_speed() 491 goto out; in test_aead_cycles() 506 goto out; in test_aead_cycles() [all …]
|
D | xxhash_generic.c | 51 static int xxhash64_final(struct shash_desc *desc, u8 *out) in xxhash64_final() argument 55 put_unaligned_le64(xxh64_digest(&dctx->xxhstate), out); in xxhash64_final() 61 unsigned int length, u8 *out) in xxhash64_digest() argument 65 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
|
D | zstd.c | 41 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()
|
D | drbg.c | 320 unsigned char *out, const unsigned char *key, in drbg_ctr_bcc() argument 328 drbg_string_fill(&data, out, drbg_blocklen(drbg)); in drbg_ctr_bcc() 340 ret = drbg_kcapi_sym(drbg, out, &data); in drbg_ctr_bcc() 344 out[cnt] ^= *pos; in drbg_ctr_bcc() 352 ret = drbg_kcapi_sym(drbg, out, &data); in drbg_ctr_bcc() 474 goto out; in drbg_ctr_df() 497 goto out; in drbg_ctr_df() 509 out: in drbg_ctr_df() 556 goto out; in drbg_ctr_update() 563 goto out; in drbg_ctr_update() [all …]
|
D | jitterentropy-kcapi.c | 87 void jent_get_nstime(__u64 *out) in jent_get_nstime() argument 101 *out = tmp; in jent_get_nstime() 150 goto out; in jent_kcapi_random() 172 out: in jent_kcapi_random()
|
D | crypto_engine.c | 83 goto out; in crypto_pump_requests() 88 goto out; in crypto_pump_requests() 94 goto out; in crypto_pump_requests() 100 goto out; in crypto_pump_requests() 113 goto out; in crypto_pump_requests() 121 goto out; in crypto_pump_requests() 203 goto out; in crypto_pump_requests() 226 out: in crypto_pump_requests()
|
D | cryptd.c | 144 goto out; in cryptd_enqueue_request() 149 goto out; in cryptd_enqueue_request() 153 out: in cryptd_enqueue_request() 266 goto out; in cryptd_skcipher_encrypt() 279 out: in cryptd_skcipher_encrypt() 294 goto out; in cryptd_skcipher_decrypt() 307 out: in cryptd_skcipher_decrypt() 502 goto out; in cryptd_hash_init() 510 out: in cryptd_hash_init() 527 goto out; in cryptd_hash_update() [all …]
|
D | testmgr.c | 1090 char *out = driver_name; in build_generic_driver_name() local 1099 *out++ = *in++; in build_generic_driver_name() 1104 memcpy(out, "-generic", 8); in build_generic_driver_name() 1105 out += 8; in build_generic_driver_name() 1107 } while ((*out++ = *in++) != '\0'); in build_generic_driver_name() 1691 goto out; in test_hash_vs_generic_impl() 1698 goto out; in test_hash_vs_generic_impl() 1709 goto out; in test_hash_vs_generic_impl() 1716 goto out; in test_hash_vs_generic_impl() 1729 goto out; in test_hash_vs_generic_impl() [all …]
|
D | skcipher.c | 66 walk->dst.virt.addr = skcipher_map(&walk->out); in skcipher_map_dst() 76 skcipher_unmap(&walk->out, walk->dst.virt.addr); in skcipher_unmap_dst() 100 scatterwalk_copychunks(addr, &walk->out, bsize, in skcipher_done_slow() 152 scatterwalk_advance(&walk->out, n); in skcipher_walk_done() 154 scatterwalk_done(&walk->out, 1, nbytes); in skcipher_walk_done() 165 goto out; in skcipher_walk_done() 168 goto out; in skcipher_walk_done() 177 out: in skcipher_walk_done() 221 p->dst = walk->out; in skcipher_queue_write() 324 walk->dst.phys.page = scatterwalk_page(&walk->out); in skcipher_next_fast() [all …]
|
/crypto/asymmetric_keys/ |
D | asym_tpm.c | 111 void *out, uint32_t outlen) in tpm_unbind() argument 175 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_unbind() 194 void *out, uint32_t outlen) in tpm_sign() argument 258 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_sign() 445 const void *in, void *out) in tpm_key_encrypt() argument 479 sg_init_one(&out_sg, out, params->out_len); in tpm_key_encrypt() 505 const void *in, void *out) in tpm_key_decrypt() argument 539 in, params->in_len, out, params->out_len); in tpm_key_decrypt() 629 const void *in, void *out) in tpm_key_sign() argument 686 r = tpm_sign(&tb, keyhandle, keyauth, in, in_len, out, params->out_len); in tpm_key_sign() [all …]
|