Lines Matching refs:tfm
1558 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in common_nonsnoop_hash() local
1559 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in common_nonsnoop_hash()
1623 crypto_ahash_digestsize(tfm), in common_nonsnoop_hash()
1644 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_edesc_alloc() local
1645 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_edesc_alloc()
1654 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_init() local
1662 (crypto_ahash_digestsize(tfm) <= SHA256_DIGEST_SIZE) in ahash_init()
1698 struct crypto_ahash *tfm = crypto_ahash_reqtfm(areq); in ahash_process_req() local
1699 struct talitos_ctx *ctx = crypto_ahash_ctx(tfm); in ahash_process_req()
1703 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ahash_process_req()
1834 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, in keyhash() argument
1837 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in keyhash()
1846 req = ahash_request_alloc(tfm, GFP_KERNEL); in keyhash()
1877 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in ahash_setkey() argument
1880 struct talitos_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ahash_setkey()
1882 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ahash_setkey()
1883 unsigned int digestsize = crypto_ahash_digestsize(tfm); in ahash_setkey()
1892 ret = keyhash(tfm, key, keylen, hash); in ahash_setkey()
1895 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ahash_setkey()
2379 static int talitos_cra_init(struct crypto_tfm *tfm) in talitos_cra_init() argument
2381 struct crypto_alg *alg = tfm->__crt_alg; in talitos_cra_init()
2383 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init()
2411 static int talitos_cra_init_aead(struct crypto_tfm *tfm) in talitos_cra_init_aead() argument
2413 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_aead()
2415 talitos_cra_init(tfm); in talitos_cra_init_aead()
2423 static int talitos_cra_init_ahash(struct crypto_tfm *tfm) in talitos_cra_init_ahash() argument
2425 struct talitos_ctx *ctx = crypto_tfm_ctx(tfm); in talitos_cra_init_ahash()
2427 talitos_cra_init(tfm); in talitos_cra_init_ahash()
2430 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in talitos_cra_init_ahash()