/crypto/ |
D | ecc.c | 222 static u64 vli_lshift(u64 *result, const u64 *in, unsigned int shift, in vli_lshift() argument 231 result[i] = (temp << shift) | carry; in vli_lshift() 254 static u64 vli_add(u64 *result, const u64 *left, const u64 *right, in vli_add() argument 267 result[i] = sum; in vli_add() 274 static u64 vli_uadd(u64 *result, const u64 *left, u64 right, in vli_uadd() argument 289 result[i] = sum; in vli_uadd() 296 u64 vli_sub(u64 *result, const u64 *left, const u64 *right, in vli_sub() argument 309 result[i] = diff; in vli_sub() 317 static u64 vli_usub(u64 *result, const u64 *left, u64 right, in vli_usub() argument 330 result[i] = diff; in vli_usub() [all …]
|
D | algif_hash.c | 22 u8 *result; member 36 if (ctx->result) in hash_alloc_result() 41 ctx->result = sock_kmalloc(sk, ds, GFP_KERNEL); in hash_alloc_result() 42 if (!ctx->result) in hash_alloc_result() 45 memset(ctx->result, 0, ds); in hash_alloc_result() 54 if (!ctx->result) in hash_free_result() 59 sock_kzfree_s(sk, ctx->result, ds); in hash_free_result() 60 ctx->result = NULL; in hash_free_result() 120 ahash_request_set_crypt(&ctx->req, NULL, ctx->result, 0); in hash_sendmsg() 153 ahash_request_set_crypt(&ctx->req, ctx->sgl.sg, ctx->result, size); in hash_sendpage() [all …]
|
D | ecc.h | 196 u64 vli_sub(u64 *result, const u64 *left, const u64 *right, 225 void vli_mod_inv(u64 *result, const u64 *input, const u64 *mod, 239 void vli_mod_mult_slow(u64 *result, const u64 *left, const u64 *right, 255 void ecc_point_mult_shamir(const struct ecc_point *result,
|
D | fips140-module.h | 25 void fips140_inject_selftest_failure(const char *impl, u8 *result); 29 static inline void fips140_inject_selftest_failure(const char *impl, u8 *result) in fips140_inject_selftest_failure() argument
|
D | algif_rng.c | 78 u8 result[MAXSIZE]; in _rng_recvmsg() local 89 memset(result, 0, len); in _rng_recvmsg() 97 genlen = crypto_rng_generate(drng, addtl, addtl_len, result, len); in _rng_recvmsg() 101 err = memcpy_to_msg(msg, result, len); in _rng_recvmsg() 102 memzero_explicit(result, len); in _rng_recvmsg()
|
D | ahash.c | 30 u8 *result; member 237 priv->result = req->result; in ahash_save_req() 248 req->result = PTR_ALIGN((u8 *)priv->ubuf, alignmask + 1); in ahash_save_req() 261 memcpy(priv->result, req->result, in ahash_restore_req() 265 req->result = priv->result; in ahash_restore_req() 334 if ((unsigned long)req->result & alignmask) in crypto_ahash_op()
|
D | fips140-eval-testing.c | 46 void fips140_inject_selftest_failure(const char *impl, u8 *result) in fips140_inject_selftest_failure() argument 49 result[0] ^= 0xff; in fips140_inject_selftest_failure()
|
D | sm2.c | 133 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) in sm2_ecc_os2ec() argument 167 mpi_set(result->x, x); in sm2_ecc_os2ec() 168 mpi_set(result->y, y); in sm2_ecc_os2ec() 169 mpi_set_ui(result->z, 1); in sm2_ecc_os2ec()
|
D | testmgr.c | 1142 const u8 *result, unsigned int digestsize, in check_hash_result() argument 1148 if (memcmp(result, vec->digest, digestsize) != 0) { in check_hash_result() 1153 if (!testmgr_is_poison(&result[digestsize], TESTMGR_POISON_LEN)) { in check_hash_result() 1191 u8 result[HASH_MAX_DIGESTSIZE + TESTMGR_POISON_LEN]; in test_shash_vec_cfg() local 1224 testmgr_poison(result, digestsize + TESTMGR_POISON_LEN); in test_shash_vec_cfg() 1234 tsgl->sgl[0].length, result); in test_shash_vec_cfg() 1270 tsgl->sgl[i].length, result); in test_shash_vec_cfg() 1314 err = crypto_shash_final(desc, result); in test_shash_vec_cfg() 1321 return check_hash_result("shash", result, digestsize, vec, vec_name, in test_shash_vec_cfg() 1343 u8 *result, unsigned int digestsize, in check_nonfinal_ahash_op() argument [all …]
|
D | shash.c | 287 return crypto_shash_final(ahash_request_ctx(req), req->result); in shash_async_final() 297 return crypto_shash_final(desc, req->result); in shash_ahash_finup() 302 req->result) : in shash_ahash_finup() 335 req->result); in shash_ahash_digest()
|
D | authenc.c | 124 scatterwalk_map_and_copy(ahreq->result, req->dst, in authenc_geniv_ahash_done() 241 u8 *ihash = ahreq->result + authsize; in crypto_authenc_decrypt_tail() 246 if (crypto_memneq(ihash, ahreq->result, authsize)) in crypto_authenc_decrypt_tail()
|
D | fips140-selftests.c | 146 fips_check_result(u8 *result, const u8 *expected_result, size_t result_size, in fips_check_result() argument 149 fips140_inject_selftest_failure(impl, result); in fips_check_result() 150 if (memcmp(result, expected_result, result_size) != 0) { in fips_check_result()
|
D | testmgr.h | 126 const char *result; member 21209 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" 21223 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" 21237 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" 21251 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" 21265 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" 21279 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
|
D | cryptd.c | 550 err = crypto_shash_final(&rctx->desc, req->result); in cryptd_hash_final()
|
D | tcrypt.c | 716 char result[64]; member 873 data[k].result, speed[i].blen); in test_mb_ahash_speed()
|
/crypto/async_tx/ |
D | async_xor.c | 317 int src_cnt, size_t len, enum sum_check_flags *result, in async_xor_val_offs() argument 351 len, result, in async_xor_val_offs() 359 unmap->addr, src_cnt, len, result, in async_xor_val_offs() 381 *result = !page_is_zero(dest, offset, len) << SUM_CHECK_P; in async_xor_val_offs() 410 int src_cnt, size_t len, enum sum_check_flags *result, in async_xor_val() argument 414 len, result, submit); in async_xor_val()
|
D | raid6test.c | 63 enum sum_check_flags result = ~0; in raid6_dual_recov() local 115 disks, bytes, &result, spare, 0, &submit); in raid6_dual_recov() 122 if (result != 0) in raid6_dual_recov() 124 __func__, faila, failb, result); in raid6_dual_recov()
|