Lines Matching refs:ahash

3  * 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)
202 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
203 int digestsize = crypto_ahash_digestsize(ahash);
217 print_hex_dump_debug("ahash update shdesc@"__stringify(__LINE__)": ",
227 print_hex_dump_debug("ahash update first shdesc@"__stringify(__LINE__)
238 print_hex_dump_debug("ahash final shdesc@"__stringify(__LINE__)": ",
249 print_hex_dump_debug("ahash digest shdesc@"__stringify(__LINE__)": ",
256 static int axcbc_set_sh_desc(struct crypto_ahash *ahash)
258 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
259 int digestsize = crypto_ahash_digestsize(ahash);
308 static int acmac_set_sh_desc(struct crypto_ahash *ahash)
310 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
311 int digestsize = crypto_ahash_digestsize(ahash);
421 static int ahash_setkey(struct crypto_ahash *ahash,
424 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
426 int blocksize = crypto_tfm_alg_blocksize(&ahash->base);
427 int digestsize = crypto_ahash_digestsize(ahash);
478 return ahash_set_sh_desc(ahash);
484 static int axcbc_setkey(struct crypto_ahash *ahash, const u8 *key,
487 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
501 return axcbc_set_sh_desc(ahash);
504 static int acmac_setkey(struct crypto_ahash *ahash, const u8 *key,
507 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
521 return acmac_set_sh_desc(ahash);
525 * ahash_edesc - s/w-extended ahash descriptor
581 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
582 int digestsize = crypto_ahash_digestsize(ahash);
584 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
632 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
633 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
635 int digestsize = crypto_ahash_digestsize(ahash);
697 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
698 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
814 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
815 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
821 int blocksize = crypto_ahash_blocksize(ahash);
939 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
940 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
946 int digestsize = crypto_ahash_digestsize(ahash);
1000 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1001 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1008 int digestsize = crypto_ahash_digestsize(ahash);
1074 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1075 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1079 int digestsize = crypto_ahash_digestsize(ahash);
1138 /* submit ahash final if it the first job descriptor */
1141 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1142 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1148 int digestsize = crypto_ahash_digestsize(ahash);
1187 /* submit ahash update if it the first job descriptor after update */
1190 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1191 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1197 int blocksize = crypto_ahash_blocksize(ahash);
1308 /* submit ahash finup if it the first job descriptor after update */
1311 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1312 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1318 int digestsize = crypto_ahash_digestsize(ahash);
1387 struct crypto_ahash *ahash = crypto_ahash_reqtfm(req);
1388 struct caam_hash_ctx *ctx = crypto_ahash_ctx(ahash);
1395 int blocksize = crypto_ahash_blocksize(ahash);
1577 /* ahash descriptors */
1754 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
1861 return alg->setkey ? 0 : ahash_set_sh_desc(ahash);