• Home
  • Raw
  • Download

Lines Matching refs:tfm

66 static int essiv_skcipher_setkey(struct crypto_skcipher *tfm,  in essiv_skcipher_setkey()  argument
69 struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_setkey()
75 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey()
87 crypto_skcipher_get_flags(tfm) & in essiv_skcipher_setkey()
93 static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, in essiv_aead_setkey() argument
96 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setkey()
103 crypto_aead_set_flags(tctx->u.aead, crypto_aead_get_flags(tfm) & in essiv_aead_setkey()
112 desc->tfm = tctx->hash; in essiv_aead_setkey()
120 crypto_cipher_set_flags(tctx->essiv_cipher, crypto_aead_get_flags(tfm) & in essiv_aead_setkey()
126 static int essiv_aead_setauthsize(struct crypto_aead *tfm, in essiv_aead_setauthsize() argument
129 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_setauthsize()
143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in essiv_skcipher_crypt() local
144 const struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_crypt()
185 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt() local
186 const struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_crypt()
202 req->assoclen - crypto_aead_ivsize(tfm), in essiv_aead_crypt()
203 crypto_aead_ivsize(tfm), 1); in essiv_aead_crypt()
206 int ivsize = crypto_aead_ivsize(tfm); in essiv_aead_crypt()
297 static int essiv_skcipher_init_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_init_tfm() argument
299 struct skcipher_instance *inst = skcipher_alg_instance(tfm); in essiv_skcipher_init_tfm()
301 struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_init_tfm()
309 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) + in essiv_skcipher_init_tfm()
322 static int essiv_aead_init_tfm(struct crypto_aead *tfm) in essiv_aead_init_tfm() argument
324 struct aead_instance *inst = aead_alg_instance(tfm); in essiv_aead_init_tfm()
326 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_init_tfm()
343 crypto_aead_set_reqsize(tfm, tctx->ivoffset + crypto_aead_ivsize(aead)); in essiv_aead_init_tfm()
355 static void essiv_skcipher_exit_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_exit_tfm() argument
357 struct essiv_tfm_ctx *tctx = crypto_skcipher_ctx(tfm); in essiv_skcipher_exit_tfm()
364 static void essiv_aead_exit_tfm(struct crypto_aead *tfm) in essiv_aead_exit_tfm() argument
366 struct essiv_tfm_ctx *tctx = crypto_aead_ctx(tfm); in essiv_aead_exit_tfm()