Lines Matching defs:tfm
428 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
429 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm);
438 crypto_ahash_digestsize(tfm));
440 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);
1787 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1788 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1803 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1804 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1851 static int atmel_sha_hmac_setkey(struct crypto_ahash *tfm, const u8 *key,
1854 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1874 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1875 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1891 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1892 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
1894 size_t ds = crypto_ahash_digestsize(tfm);
1950 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1951 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
2024 static int atmel_sha_hmac_cra_init(struct crypto_tfm *tfm)
2026 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm);
2028 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
2036 static void atmel_sha_hmac_cra_exit(struct crypto_tfm *tfm)
2038 struct atmel_sha_hmac_ctx *hmac = crypto_tfm_ctx(tfm);
2110 struct crypto_ahash *tfm;
2171 struct crypto_ahash *tfm;
2201 tfm = crypto_alloc_ahash(name, 0, 0);
2202 if (IS_ERR(tfm)) {
2203 err = PTR_ERR(tfm);
2206 tctx = crypto_ahash_ctx(tfm);
2215 auth->tfm = tfm;
2220 crypto_free_ahash(tfm);
2229 crypto_free_ahash(auth->tfm);
2237 struct crypto_ahash *tfm = auth->tfm;
2239 crypto_ahash_clear_flags(tfm, CRYPTO_TFM_REQ_MASK);
2240 crypto_ahash_set_flags(tfm, flags & CRYPTO_TFM_REQ_MASK);
2241 return crypto_ahash_setkey(tfm, key, keylen);
2252 struct crypto_ahash *tfm = auth->tfm;
2253 struct atmel_sha_ctx *tctx = crypto_ahash_ctx(tfm);
2269 ahash_request_set_tfm(req, tfm);
2284 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
2285 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);
2307 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
2308 struct atmel_sha_hmac_ctx *hmac = crypto_ahash_ctx(tfm);