Lines Matching refs:ahash
3 * 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)
207 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
208 int digestsize = crypto_ahash_digestsize(ahash);
222 print_hex_dump_debug("ahash update shdesc@"__stringify(__LINE__)": ",
232 print_hex_dump_debug("ahash update first shdesc@"__stringify(__LINE__)
243 print_hex_dump_debug("ahash final shdesc@"__stringify(__LINE__)": ",
254 print_hex_dump_debug("ahash digest shdesc@"__stringify(__LINE__)": ",
261 static int axcbc_set_sh_desc(struct crypto_ahash *ahash)
263 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
264 int digestsize = crypto_ahash_digestsize(ahash);
313 static int acmac_set_sh_desc(struct crypto_ahash *ahash)
315 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
316 int digestsize = crypto_ahash_digestsize(ahash);
424 static int ahash_setkey(struct crypto_ahash *ahash,
427 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base);
430 int digestsize = crypto_ahash_digestsize(ahash);
487 return ahash_set_sh_desc(ahash);
493 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key,
496 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
510 return axcbc_set_sh_desc(ahash);
513 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key,
516 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
530 return acmac_set_sh_desc(ahash);
534 * ahash_edesc - s/w-extended ahash descriptor
590 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
591 int digestsize = crypto_ahash_digestsize(ahash);
593 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
641 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
642 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
644 int digestsize = crypto_ahash_digestsize(ahash);
821 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
822 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
828 int blocksize = crypto_ahash_blocksize(ahash);
946 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
947 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
953 int digestsize = crypto_ahash_digestsize(ahash);
1007 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1008 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1015 int digestsize = crypto_ahash_digestsize(ahash);
1081 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1082 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1086 int digestsize = crypto_ahash_digestsize(ahash);
1145 /* submit ahash final if it the first job descriptor */
1148 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1149 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1155 int digestsize = crypto_ahash_digestsize(ahash);
1194 /* submit ahash update if it the first job descriptor after update */
1197 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1198 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1204 int blocksize = crypto_ahash_blocksize(ahash);
1315 /* submit ahash finup if it the first job descriptor after update */
1318 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1319 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1325 int digestsize = crypto_ahash_digestsize(ahash);
1394 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1395 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1402 int blocksize = crypto_ahash_blocksize(ahash);
1584 /* ahash descriptors */
1761 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
1769 struct caam_hash_ctx *ctx = crypto_ahash_ctx_dma(ahash);
1859 crypto_ahash_set_reqsize_dma(ahash, sizeof(struct caam_hash_state));
1865 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);