Lines Matching refs:tfm
130 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_init() local
131 struct bfin_crypto_crc_ctx *crc_ctx = crypto_ahash_ctx(tfm); in bfin_crypto_crc_init()
160 crypto_ahash_digestsize(tfm)); in bfin_crypto_crc_init()
417 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_final() local
418 struct bfin_crypto_crc_ctx *crc_ctx = crypto_ahash_ctx(tfm); in bfin_crypto_crc_final()
430 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in bfin_crypto_crc_finup() local
431 struct bfin_crypto_crc_ctx *crc_ctx = crypto_ahash_ctx(tfm); in bfin_crypto_crc_finup()
453 static int bfin_crypto_crc_setkey(struct crypto_ahash *tfm, const u8 *key, in bfin_crypto_crc_setkey() argument
456 struct bfin_crypto_crc_ctx *crc_ctx = crypto_ahash_ctx(tfm); in bfin_crypto_crc_setkey()
460 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in bfin_crypto_crc_setkey()
469 static int bfin_crypto_crc_cra_init(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_init() argument
471 struct bfin_crypto_crc_ctx *crc_ctx = crypto_tfm_ctx(tfm); in bfin_crypto_crc_cra_init()
474 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in bfin_crypto_crc_cra_init()
480 static void bfin_crypto_crc_cra_exit(struct crypto_tfm *tfm) in bfin_crypto_crc_cra_exit() argument