• Home
  • Raw
  • Download

Lines Matching refs:tfm

288 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm)  in aesni_rfc4106_gcm_ctx_get()  argument
294 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get()
298 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument
304 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get()
318 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument
322 u32 *flags = &tfm->crt_flags; in aes_set_key_common()
342 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
345 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
348 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() argument
350 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
361 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt() argument
363 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
374 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in aesni_skcipher_setkey() argument
377 return aes_set_key_common(crypto_skcipher_tfm(tfm), in aesni_skcipher_setkey()
378 crypto_skcipher_ctx(tfm), key, len); in aesni_skcipher_setkey()
383 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
384 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
405 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
406 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
427 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
428 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
449 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
450 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
506 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local
507 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
530 static int xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_aesni_setkey() argument
533 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_aesni_setkey()
536 err = xts_verify_key(tfm, key, keylen); in xts_aesni_setkey()
543 err = aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_crypt_ctx, in xts_aesni_setkey()
549 return aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_tweak_ctx, in xts_aesni_setkey()
602 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
603 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt()
613 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
614 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
678 static int generic_gcmaes_set_authsize(struct crypto_aead *tfm, in generic_gcmaes_set_authsize() argument
701 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in gcmaes_crypt_by_sg() local
702 unsigned long auth_tag_len = crypto_aead_authsize(tfm); in gcmaes_crypt_by_sg()
847 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in helper_rfc4106_encrypt() local
848 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in helper_rfc4106_encrypt()
875 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in helper_rfc4106_decrypt() local
876 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in helper_rfc4106_decrypt()
1006 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in generic_gcmaes_encrypt() local
1007 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); in generic_gcmaes_encrypt()
1023 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in generic_gcmaes_decrypt() local
1024 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); in generic_gcmaes_decrypt()