Home
last modified time | relevance | path

Searched refs:ahash (Results 1 - 25 of 58) sorted by relevance

123

/kernel/linux/linux-5.10/net/ipv4/
H A Dah4.c25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
30 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp()
31 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp()
36 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp()
49 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument
52 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
55 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument
60 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
63 ahash_request_set_tfm(req, ahash); in ah_tmp_req()
68 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument
154 struct crypto_ahash *ahash; ah_output() local
312 struct crypto_ahash *ahash; ah_input() local
477 struct crypto_ahash *ahash; ah_init_state() local
[all...]
/kernel/linux/linux-5.10/net/ipv6/
H A Dah6.c49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
54 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp()
55 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp()
60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp()
78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument
81 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument
89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
92 ahash_request_set_tfm(req, ahash); in ah_tmp_req()
97 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument
331 struct crypto_ahash *ahash; ah6_output() local
517 struct crypto_ahash *ahash; ah6_input() local
676 struct crypto_ahash *ahash; ah6_init_state() local
[all...]
/kernel/linux/linux-6.6/net/ipv6/
H A Dah6.c49 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
54 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp()
55 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp()
60 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp()
78 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument
81 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
84 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument
89 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
92 ahash_request_set_tfm(req, ahash); in ah_tmp_req()
97 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument
328 struct crypto_ahash *ahash; ah6_output() local
514 struct crypto_ahash *ahash; ah6_input() local
673 struct crypto_ahash *ahash; ah6_init_state() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dah4.c25 static void *ah_alloc_tmp(struct crypto_ahash *ahash, int nfrags, in ah_alloc_tmp() argument
30 len = size + crypto_ahash_digestsize(ahash) + in ah_alloc_tmp()
31 (crypto_ahash_alignmask(ahash) & in ah_alloc_tmp()
36 len += sizeof(struct ahash_request) + crypto_ahash_reqsize(ahash); in ah_alloc_tmp()
49 static inline u8 *ah_tmp_icv(struct crypto_ahash *ahash, void *tmp, in ah_tmp_icv() argument
52 return PTR_ALIGN((u8 *)tmp + offset, crypto_ahash_alignmask(ahash) + 1); in ah_tmp_icv()
55 static inline struct ahash_request *ah_tmp_req(struct crypto_ahash *ahash, in ah_tmp_req() argument
60 req = (void *)PTR_ALIGN(icv + crypto_ahash_digestsize(ahash), in ah_tmp_req()
63 ahash_request_set_tfm(req, ahash); in ah_tmp_req()
68 static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, in ah_req_sg() argument
154 struct crypto_ahash *ahash; ah_output() local
312 struct crypto_ahash *ahash; ah_input() local
478 struct crypto_ahash *ahash; ah_init_state() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/caam/
H A Dcaamhash.c3 * caam - Freescale FSL CAAM support for ahash functions of crypto API
88 /* ahash per-session context */
107 /* ahash state */
200 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
202 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
203 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
217 print_hex_dump_debug("ahash update shdesc@"__stringify(__LINE__)": ", in ahash_set_sh_desc()
227 print_hex_dump_debug("ahash update first shdesc@"__stringify(__LINE__) in ahash_set_sh_desc()
238 print_hex_dump_debug("ahash final shdesc@"__stringify(__LINE__)": ", in ahash_set_sh_desc()
249 print_hex_dump_debug("ahash diges in ahash_set_sh_desc()
256 axcbc_set_sh_desc(struct crypto_ahash *ahash) axcbc_set_sh_desc() argument
308 acmac_set_sh_desc(struct crypto_ahash *ahash) acmac_set_sh_desc() argument
421 ahash_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) ahash_setkey() argument
484 axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) axcbc_setkey() argument
504 acmac_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) acmac_setkey() argument
581 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_cpy() local
632 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_switch() local
697 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_edesc_alloc() local
814 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_ctx() local
939 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_ctx() local
1000 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_ctx() local
1074 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_digest() local
1141 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_no_ctx() local
1190 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_no_ctx() local
1311 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_no_ctx() local
1387 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_first() local
1754 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); caam_hash_cra_init() local
[all...]
H A Dcaamalg_qi2.c3049 * struct caam_hash_ctx - ahash per-session context
3066 /* ahash state */
3131 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
3133 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash); in ahash_set_sh_desc()
3134 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3147 print_hex_dump_debug("ahash update shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3159 print_hex_dump_debug("ahash update first shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3171 print_hex_dump_debug("ahash final shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3183 print_hex_dump_debug("ahash digest shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3303 static int ahash_setkey(struct crypto_ahash *ahash, cons argument
3390 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done() local
3417 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_bi() local
3455 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_ctx_src() local
3482 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_ctx_dst() local
3518 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_ctx() local
3637 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_ctx() local
3708 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_ctx() local
3802 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_digest() local
3897 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_no_ctx() local
3970 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_no_ctx() local
4091 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_no_ctx() local
4187 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_first() local
4540 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); caam_hash_cra_init() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/caam/
H A Dcaamhash.c3 * caam - Freescale FSL CAAM support for ahash functions of crypto API
94 /* ahash per-session context */
112 /* ahash state */
205 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
207 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc()
208 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
222 print_hex_dump_debug("ahash update shdesc@"__stringify(__LINE__)": ", in ahash_set_sh_desc()
232 print_hex_dump_debug("ahash update first shdesc@"__stringify(__LINE__) in ahash_set_sh_desc()
243 print_hex_dump_debug("ahash final shdesc@"__stringify(__LINE__)": ", in ahash_set_sh_desc()
254 print_hex_dump_debug("ahash diges in ahash_set_sh_desc()
261 axcbc_set_sh_desc(struct crypto_ahash *ahash) axcbc_set_sh_desc() argument
313 acmac_set_sh_desc(struct crypto_ahash *ahash) acmac_set_sh_desc() argument
424 ahash_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) ahash_setkey() argument
493 axcbc_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) axcbc_setkey() argument
513 acmac_setkey(struct crypto_ahash *ahash, const u8 *key, unsigned int keylen) acmac_setkey() argument
590 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_cpy() local
641 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_switch() local
821 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_ctx() local
946 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_ctx() local
1007 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_ctx() local
1081 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_digest() local
1148 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_no_ctx() local
1197 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_no_ctx() local
1318 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_no_ctx() local
1394 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_first() local
1761 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); caam_hash_cra_init() local
[all...]
H A Dcaamalg_qi2.c3056 * struct caam_hash_ctx - ahash per-session context
3073 /* ahash state */
3138 static int ahash_set_sh_desc(struct crypto_ahash *ahash) in ahash_set_sh_desc() argument
3140 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash); in ahash_set_sh_desc()
3141 int digestsize = crypto_ahash_digestsize(ahash); in ahash_set_sh_desc()
3154 print_hex_dump_debug("ahash update shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3166 print_hex_dump_debug("ahash update first shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3178 print_hex_dump_debug("ahash final shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3190 print_hex_dump_debug("ahash digest shdesc@" __stringify(__LINE__)": ", in ahash_set_sh_desc()
3310 static int ahash_setkey(struct crypto_ahash *ahash, cons argument
3403 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done() local
3430 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_bi() local
3468 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_ctx_src() local
3495 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_done_ctx_dst() local
3531 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_ctx() local
3650 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_ctx() local
3721 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_ctx() local
3815 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_digest() local
3910 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_final_no_ctx() local
3983 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_no_ctx() local
4104 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_finup_no_ctx() local
4200 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); ahash_update_first() local
4553 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); caam_hash_cra_init() local
[all...]
/kernel/linux/linux-6.6/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c794 ast_alg = container_of(alg, struct aspeed_hace_alg, alg.ahash.base); in aspeed_sham_cra_init()
853 .alg.ahash.base = {
880 .alg.ahash.op = {
885 .alg.ahash.base = {
912 .alg.ahash.op = {
917 .alg.ahash.base = {
944 .alg.ahash.op = {
950 .alg.ahash.base = {
979 .alg.ahash.op = {
985 .alg.ahash
[all...]
/kernel/linux/linux-5.10/drivers/crypto/qce/
H A Dsha.c34 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local
39 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done()
45 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); in qce_ahash_done()
59 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); in qce_ahash_done()
142 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_export() local
145 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_export()
147 crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_ahash_export()
173 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_import_common() local
175 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_import_common()
179 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common()
428 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); qce_ahash_cra_init() local
[all...]
H A Dsha.h23 * struct qce_sha_reqctx - holds private ahash objects per request
62 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local
63 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl()
66 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
/kernel/linux/linux-6.6/drivers/crypto/qce/
H A Dsha.h24 * struct qce_sha_reqctx - holds private ahash objects per request
63 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in to_ahash_tmpl() local
64 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl()
67 return container_of(alg, struct qce_alg_template, alg.ahash); in to_ahash_tmpl()
H A Dsha.c40 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in qce_ahash_done() local
45 unsigned int digestsize = crypto_ahash_digestsize(ahash); in qce_ahash_done()
51 dev_dbg(qce->dev, "ahash dma termination error (%d)\n", error); in qce_ahash_done()
65 dev_dbg(qce->dev, "ahash operation error (%x)\n", status); in qce_ahash_done()
285 tmpl->alg.ahash.halg.digestsize); in qce_ahash_final()
322 tmpl->alg.ahash.halg.digestsize); in qce_ahash_digest()
395 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in qce_ahash_cra_init() local
398 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct qce_sha_reqctx)); in qce_ahash_cra_init()
466 alg = &tmpl->alg.ahash; in qce_ahash_register_one()
518 crypto_unregister_ahash(&tmpl->alg.ahash); in qce_ahash_unregister()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c233 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local
235 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result()
274 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result()
279 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result()
298 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result()
422 /* Now handle the current ahash request buffer(s) */ in safexcel_ahash_send_req()
524 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local
525 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result()
626 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv()
923 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init()
2488 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); safexcel_sha3_cra_init() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dn2_core.c377 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
378 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
391 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
403 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
404 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
412 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
413 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
436 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
452 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
453 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1367 struct ahash_alg *ahash; __n2_register_one_hmac() local
1407 struct ahash_alg *ahash; __n2_register_one_ahash() local
[all...]
H A Dsa2ul.c139 struct ahash_alg ahash; member
1397 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1489 ctx->fallback.ahash = in sa_sha_cra_init_alg()
1492 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg()
1495 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg()
1505 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg()
1524 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1537 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1552 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
1566 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/
H A Dn2_core.c379 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_init() local
380 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_init()
393 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hash_cra_init()
405 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hash_cra_exit() local
406 struct n2_hash_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hash_cra_exit()
414 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_init() local
415 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_init()
438 crypto_ahash_set_reqsize(ahash, (sizeof(struct n2_hash_req_ctx) + in n2_hmac_cra_init()
454 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in n2_hmac_cra_exit() local
455 struct n2_hmac_ctx *ctx = crypto_ahash_ctx(ahash); in n2_hmac_cra_exit()
1369 struct ahash_alg *ahash; __n2_register_one_hmac() local
1409 struct ahash_alg *ahash; __n2_register_one_ahash() local
[all...]
H A Dsa2ul.c159 struct ahash_alg ahash; member
1420 ahash_request_set_tfm(subreq, ctx->fallback.ahash); in sa_sha_run()
1513 ctx->fallback.ahash = in sa_sha_cra_init_alg()
1516 if (IS_ERR(ctx->fallback.ahash)) { in sa_sha_cra_init_alg()
1519 return PTR_ERR(ctx->fallback.ahash); in sa_sha_cra_init_alg()
1529 crypto_ahash_reqsize(ctx->fallback.ahash)); in sa_sha_cra_init_alg()
1548 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_init()
1561 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_update()
1576 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_final()
1590 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback.ahash); in sa_sha_finup()
[all...]
/kernel/linux/linux-6.6/include/crypto/internal/
H A Dhash.h170 static inline void crypto_ahash_set_reqsize_dma(struct crypto_ahash *ahash, in crypto_ahash_set_reqsize_dma() argument
174 ahash->reqsize = reqsize; in crypto_ahash_set_reqsize_dma()
190 struct crypto_ahash *ahash) in ahash_alg_instance()
192 return ahash_instance(crypto_tfm_alg_instance(&ahash->base)); in ahash_alg_instance()
189 ahash_alg_instance( struct crypto_ahash *ahash) ahash_alg_instance() argument
/kernel/linux/linux-6.6/net/sunrpc/auth_gss/
H A Dgss_krb5_crypto.c788 struct crypto_ahash *ahash; in gss_krb5_aes_encrypt() local
795 ahash = kctx->initiator_integ; in gss_krb5_aes_encrypt()
799 ahash = kctx->acceptor_integ; in gss_krb5_aes_encrypt()
837 err = gss_krb5_checksum(ahash, NULL, 0, buf, in gss_krb5_aes_encrypt()
861 struct crypto_ahash *ahash; in gss_krb5_aes_decrypt() local
871 ahash = kctx->acceptor_integ; in gss_krb5_aes_decrypt()
875 ahash = kctx->initiator_integ; in gss_krb5_aes_decrypt()
889 ret = gss_krb5_checksum(ahash, NULL, 0, &subbuf, 0, &our_hmac_obj); in gss_krb5_aes_decrypt()
1016 struct crypto_ahash *ahash; in krb5_etm_encrypt() local
1025 ahash in krb5_etm_encrypt()
1107 struct crypto_ahash *ahash; krb5_etm_decrypt() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c231 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_req_result() local
233 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_req_result()
272 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result()
277 crypto_ahash_digestsize(ahash); in safexcel_handle_req_result()
296 crypto_ahash_digestsize(ahash)); in safexcel_handle_req_result()
420 /* Now handle the current ahash request buffer(s) */ in safexcel_ahash_send_req()
522 struct crypto_ahash *ahash = crypto_ahash_reqtfm(areq); in safexcel_handle_inv_result() local
523 struct safexcel_ahash_ctx *ctx = crypto_ahash_ctx(ahash); in safexcel_handle_inv_result()
624 EIP197_REQUEST_ON_STACK(req, ahash, EIP197_AHASH_REQ_SIZE); in safexcel_ahash_exit_inv()
921 struct safexcel_alg_template, alg.ahash); in safexcel_ahash_cra_init()
2533 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); safexcel_sha3_cra_init() local
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dah.h13 struct crypto_ahash *ahash; member
/kernel/linux/linux-6.6/include/net/
H A Dah.h13 struct crypto_ahash *ahash; member
/kernel/linux/linux-5.10/include/crypto/internal/
H A Dhash.h162 struct crypto_ahash *ahash) in ahash_alg_instance()
164 return ahash_instance(crypto_tfm_alg_instance(&ahash->base)); in ahash_alg_instance()
161 ahash_alg_instance( struct crypto_ahash *ahash) ahash_alg_instance() argument
/kernel/linux/linux-5.10/drivers/crypto/ccree/
H A Dcc_hash.c726 static int cc_hash_setkey(struct crypto_ahash *ahash, const u8 *key, in cc_hash_setkey() argument
739 ctx = crypto_ahash_ctx(ahash); in cc_hash_setkey()
743 blocksize = crypto_tfm_alg_blocksize(&ahash->base); in cc_hash_setkey()
744 digestsize = crypto_ahash_digestsize(ahash); in cc_hash_setkey()
921 static int cc_xcbc_setkey(struct crypto_ahash *ahash, in cc_xcbc_setkey() argument
925 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_xcbc_setkey()
1007 static int cc_cmac_setkey(struct crypto_ahash *ahash, in cc_cmac_setkey() argument
1010 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_cmac_setkey()
1501 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); in cc_hash_export() local
1502 struct cc_hash_ctx *ctx = crypto_ahash_ctx(ahash); in cc_hash_export()
1527 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req); cc_hash_import() local
[all...]

Completed in 35 milliseconds

123