Lines Matching refs:tfm

695 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm)  in nx_crypto_ctx_aes_ccm_init()  argument
697 crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx)); in nx_crypto_ctx_aes_ccm_init()
698 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ccm_init()
702 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init() argument
704 crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx)); in nx_crypto_ctx_aes_gcm_init()
705 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_gcm_init()
709 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ctr_init() argument
711 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ctr_init()
715 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_cbc_init() argument
717 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_cbc_init()
721 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm) in nx_crypto_ctx_aes_ecb_init() argument
723 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ecb_init()
727 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init() argument
729 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); in nx_crypto_ctx_sha_init()
732 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init() argument
734 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_xcbc_init()
746 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit() argument
748 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_exit()
757 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm) in nx_crypto_ctx_skcipher_exit() argument
759 nx_crypto_ctx_exit(crypto_skcipher_ctx(tfm)); in nx_crypto_ctx_skcipher_exit()
762 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit() argument
764 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); in nx_crypto_ctx_aead_exit()