Lines Matching defs:tfm

427 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
428 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm);
437 crypto_ahash_digestsize(tfm));
439 switch (crypto_ahash_digestsize(tfm)) {
1085 ctx = crypto_tfm_ctx(async_req->tfm);
1153 struct atmel_sha_ctx *tctx = crypto_tfm_ctx(req->base.tfm);
1243 static int atmel_sha_cra_init(struct crypto_tfm *tfm)
1245 struct atmel_sha_ctx *ctx = crypto_tfm_ctx(tfm);
1247 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1689 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1690 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1750 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1751 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1753 size_t ds = crypto_ahash_digestsize(tfm);
1767 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1768 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1786 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1787 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1802 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1803 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1850 static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key,
1853 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1873 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1874 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1890 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1891 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1893 size_t ds = crypto_ahash_digestsize(tfm);
1949 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1950 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1997 static int atmel_sha_hmac_cra_init(struct crypto_tfm *tfm)
1999 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm);
2001 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
2009 static void atmel_sha_hmac_cra_exit(struct crypto_tfm *tfm)
2011 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm);
2083 struct crypto_ahash *tfm;
2145 struct crypto_ahash *tfm;
2175 tfm = crypto_alloc_ahash(name, 0, 0);
2176 if (IS_ERR(tfm)) {
2177 err = PTR_ERR(tfm);
2180 tctx = crypto_ahash_ctx(tfm);
2189 auth->tfm = tfm;
2194 crypto_free_ahash(tfm);
2203 crypto_free_ahash(auth->tfm);
2211 struct crypto_ahash *tfm = auth->tfm;
2213 crypto_ahash_clear_flags(tfm, CRYPTO_TFM_REQ_MASK);
2214 crypto_ahash_set_flags(tfm, flags & CRYPTO_TFM_REQ_MASK);
2215 return crypto_ahash_setkey(tfm, key, keylen);
2226 struct crypto_ahash *tfm = auth->tfm;
2227 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm);
2243 ahash_request_set_tfm(req, tfm);
2258 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
2259 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
2281 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
2282 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);