Lines Matching refs:tfm

428 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);  in atmel_sha_init()  local
429 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); in atmel_sha_init()
438 crypto_ahash_digestsize(tfm)); in atmel_sha_init()
440 switch (crypto_ahash_digestsize(tfm)) { in atmel_sha_init()
1085 ctx = crypto_tfm_ctx(async_req->tfm); in atmel_sha_handle_queue()
1153 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm); in atmel_sha_enqueue()
1243 static int atmel_sha_cra_init(struct crypto_tfm *tfm) in atmel_sha_cra_init() argument
1245 struct atmel_sha_ctx *ctx = crypto_tfm_ctx(tfm); in atmel_sha_cra_init()
1247 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in atmel_sha_cra_init()
1689 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_setup() local
1690 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_setup()
1750 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_prehash_key_done() local
1751 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_prehash_key_done()
1753 size_t ds = crypto_ahash_digestsize(tfm); in atmel_sha_hmac_prehash_key_done()
1767 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_compute_ipad_hash() local
1768 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_compute_ipad_hash()
1787 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_compute_opad_hash() local
1788 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_compute_opad_hash()
1803 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_setup_done() local
1804 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_setup_done()
1851 static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, in atmel_sha_hmac_setkey() argument
1854 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_setkey()
1874 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_init_done() local
1875 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_init_done()
1891 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_final() local
1892 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_final()
1894 size_t ds = crypto_ahash_digestsize(tfm); in atmel_sha_hmac_final()
1950 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_hmac_digest2() local
1951 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_hmac_digest2()
2024 static int atmel_sha_hmac_cra_init(struct crypto_tfm *tfm) in atmel_sha_hmac_cra_init() argument
2026 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm); in atmel_sha_hmac_cra_init()
2028 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in atmel_sha_hmac_cra_init()
2036 static void atmel_sha_hmac_cra_exit(struct crypto_tfm *tfm) in atmel_sha_hmac_cra_exit() argument
2038 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm); in atmel_sha_hmac_cra_exit()
2110 struct crypto_ahash *tfm; member
2171 struct crypto_ahash *tfm; in atmel_sha_authenc_spawn() local
2201 tfm = crypto_alloc_ahash(name, 0, 0); in atmel_sha_authenc_spawn()
2202 if (IS_ERR(tfm)) { in atmel_sha_authenc_spawn()
2203 err = PTR_ERR(tfm); in atmel_sha_authenc_spawn()
2206 tctx = crypto_ahash_ctx(tfm); in atmel_sha_authenc_spawn()
2215 auth->tfm = tfm; in atmel_sha_authenc_spawn()
2220 crypto_free_ahash(tfm); in atmel_sha_authenc_spawn()
2229 crypto_free_ahash(auth->tfm); in atmel_sha_authenc_free()
2237 struct crypto_ahash *tfm = auth->tfm; in atmel_sha_authenc_setkey() local
2239 crypto_ahash_clear_flags(tfm, CRYPTO_TFM_REQ_MASK); in atmel_sha_authenc_setkey()
2240 crypto_ahash_set_flags(tfm, flags & CRYPTO_TFM_REQ_MASK); in atmel_sha_authenc_setkey()
2241 return crypto_ahash_setkey(tfm, key, keylen); in atmel_sha_authenc_setkey()
2252 struct crypto_ahash *tfm = auth->tfm; in atmel_sha_authenc_schedule() local
2253 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm); in atmel_sha_authenc_schedule()
2269 ahash_request_set_tfm(req, tfm); in atmel_sha_authenc_schedule()
2284 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_authenc_init() local
2285 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_authenc_init()
2307 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in atmel_sha_authenc_init2() local
2308 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm); in atmel_sha_authenc_init2()