Lines Matching refs:tfm
708 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_ccm_init() argument
710 crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx)); in nx_crypto_ctx_aes_ccm_init()
711 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ccm_init()
715 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm) in nx_crypto_ctx_aes_gcm_init() argument
717 crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx)); in nx_crypto_ctx_aes_gcm_init()
718 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_gcm_init()
722 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ctr_init() argument
724 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ctr_init()
728 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_cbc_init() argument
730 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_cbc_init()
734 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ecb_init() argument
736 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ecb_init()
740 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init() argument
742 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); in nx_crypto_ctx_sha_init()
745 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init() argument
747 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_xcbc_init()
759 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit() argument
761 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_exit()
770 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm) in nx_crypto_ctx_aead_exit() argument
772 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm); in nx_crypto_ctx_aead_exit()