• Home
  • Raw
  • Download

Lines Matching refs:tfm

282 aesni_rfc4106_gcm_ctx *aesni_rfc4106_gcm_ctx_get(struct crypto_aead *tfm)  in aesni_rfc4106_gcm_ctx_get()  argument
288 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in aesni_rfc4106_gcm_ctx_get()
292 generic_gcmaes_ctx *generic_gcmaes_ctx_get(struct crypto_aead *tfm) in generic_gcmaes_ctx_get() argument
298 return PTR_ALIGN(crypto_aead_ctx(tfm), align); in generic_gcmaes_ctx_get()
312 static int aes_set_key_common(struct crypto_tfm *tfm, void *raw_ctx, in aes_set_key_common() argument
333 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
336 return aes_set_key_common(tfm, crypto_tfm_ctx(tfm), in_key, key_len); in aes_set_key()
339 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt() argument
341 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
352 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt() argument
354 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
365 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in aesni_skcipher_setkey() argument
368 return aes_set_key_common(crypto_skcipher_tfm(tfm), in aesni_skcipher_setkey()
369 crypto_skcipher_ctx(tfm), key, len); in aesni_skcipher_setkey()
374 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
375 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
396 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
397 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
418 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
419 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
440 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
441 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
495 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local
496 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
519 static int xts_aesni_setkey(struct crypto_skcipher *tfm, const u8 *key, in xts_aesni_setkey() argument
522 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_aesni_setkey()
525 err = xts_verify_key(tfm, key, keylen); in xts_aesni_setkey()
532 err = aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_crypt_ctx, in xts_aesni_setkey()
538 return aes_set_key_common(crypto_skcipher_tfm(tfm), ctx->raw_tweak_ctx, in xts_aesni_setkey()
591 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_encrypt() local
592 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_encrypt()
602 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in xts_decrypt() local
603 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm); in xts_decrypt()
666 static int generic_gcmaes_set_authsize(struct crypto_aead *tfm, in generic_gcmaes_set_authsize() argument
689 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in gcmaes_crypt_by_sg() local
690 unsigned long auth_tag_len = crypto_aead_authsize(tfm); in gcmaes_crypt_by_sg()
831 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in helper_rfc4106_encrypt() local
832 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in helper_rfc4106_encrypt()
859 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in helper_rfc4106_decrypt() local
860 struct aesni_rfc4106_gcm_ctx *ctx = aesni_rfc4106_gcm_ctx_get(tfm); in helper_rfc4106_decrypt()
990 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in generic_gcmaes_encrypt() local
991 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); in generic_gcmaes_encrypt()
1007 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in generic_gcmaes_decrypt() local
1008 struct generic_gcmaes_ctx *ctx = generic_gcmaes_ctx_get(tfm); in generic_gcmaes_decrypt()