Lines Matching defs:tfm
120 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
150 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
173 static int ghash_setkey(struct crypto_shash *tfm,
176 struct ghash_key *key = crypto_shash_ctx(tfm);
218 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
219 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
225 desc->tfm = child;
232 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
233 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
250 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
251 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
267 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
268 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
281 desc->tfm = child;
289 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
290 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
293 desc->tfm = cryptd_ahash_child(ctx->cryptd_tfm);
306 static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key,
309 struct ghash_async_ctx *ctx = crypto_ahash_ctx(tfm);
313 crypto_ahash_set_flags(child, crypto_ahash_get_flags(tfm)
318 static int ghash_async_init_tfm(struct crypto_tfm *tfm)
321 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm);
327 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
334 static void ghash_async_exit_tfm(struct crypto_tfm *tfm)
336 struct ghash_async_ctx *ctx = crypto_tfm_ctx(tfm);
382 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *inkey,
385 struct gcm_key *ctx = crypto_aead_ctx(tfm);
416 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
673 static int rfc4106_setkey(struct crypto_aead *tfm, const u8 *inkey,
676 struct gcm_key *ctx = crypto_aead_ctx(tfm);
680 err = gcm_aes_setkey(tfm, inkey, keylen);
688 static int rfc4106_setauthsize(struct crypto_aead *tfm, unsigned int authsize)