Lines Matching defs:tfm
202 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm)
208 return PTR_ALIGN(crypto_aead_ctx(tfm), align);
212 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm)
218 return PTR_ALIGN(crypto_aead_ctx(tfm), align);
252 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
255 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key,
259 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
261 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm));
272 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src)
274 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm));
285 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key,
288 return aes_set_key_common(aes_ctx(crypto_skcipher_ctx(tfm)), key, len);
293 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
294 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
315 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
316 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
337 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
338 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
359 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
360 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
381 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
382 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
390 skcipher_request_set_tfm(&subreq, tfm);
437 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
438 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
446 skcipher_request_set_tfm(&subreq, tfm);
511 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
512 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
560 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
561 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm));
650 static int generic_gcmaes_set_authsize(struct crypto_aead *tfm,
782 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
783 unsigned long auth_tag_len = crypto_aead_authsize(tfm);
801 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
802 unsigned long auth_tag_len = crypto_aead_authsize(tfm);
827 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
828 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm);
855 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
856 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm);
881 static int xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key,
884 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
887 err = xts_verify_key(tfm, key, keylen);
905 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
906 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
924 skcipher_request_set_tfm(&subreq, tfm);
1156 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1157 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm);
1173 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1174 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm);