Lines Matching defs:tfm

208 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm)
210 return aes_align_addr(crypto_aead_ctx(tfm));
214 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm)
216 return aes_align_addr(crypto_aead_ctx(tfm));
225 static inline struct aesni_xts_ctx *aes_xts_ctx(struct crypto_skcipher *tfm)
227 return aes_align_addr(crypto_skcipher_ctx(tfm));
248 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
251 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key,
255 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
257 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm));
268 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
270 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm));
281 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key,
284 return aes_set_key_common(aes_ctx(crypto_skcipher_ctx(tfm)), key, len);
289 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
290 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
311 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
312 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
333 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
334 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
355 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
356 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
377 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
378 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
386 skcipher_request_set_tfm(&subreq, tfm);
433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
434 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
442 skcipher_request_set_tfm(&subreq, tfm);
507 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
508 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
556 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
557 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
636 static int generic_gcmaes_set_authsize(struct crypto_aead *tfm,
768 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
769 unsigned long auth_tag_len = crypto_aead_authsize(tfm);
787 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
788 unsigned long auth_tag_len = crypto_aead_authsize(tfm);
813 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
814 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm);
841 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
842 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm);
867 static int xts_setkey_aesni(struct crypto_skcipher *tfm, const u8 *key,
870 struct aesni_xts_ctx *ctx = aes_xts_ctx(tfm);
873 err = xts_verify_key(tfm, key, keylen);
898 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
899 const struct aesni_xts_ctx *ctx = aes_xts_ctx(tfm);
914 skcipher_request_set_tfm(&subreq, tfm);
965 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
966 const struct aesni_xts_ctx *ctx = aes_xts_ctx(tfm);
1325 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1326 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm);
1342 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1343 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm);