Lines Matching refs:tfm
636 int nx_crypto_ctx_aes_ccm_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ccm_init() argument
638 tfm->crt_aead.reqsize = sizeof(struct nx_ccm_rctx); in nx_crypto_ctx_aes_ccm_init()
639 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ccm_init()
643 int nx_crypto_ctx_aes_gcm_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_gcm_init() argument
645 tfm->crt_aead.reqsize = sizeof(struct nx_gcm_rctx); in nx_crypto_ctx_aes_gcm_init()
646 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_gcm_init()
650 int nx_crypto_ctx_aes_ctr_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ctr_init() argument
652 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ctr_init()
656 int nx_crypto_ctx_aes_cbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_cbc_init() argument
658 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_cbc_init()
662 int nx_crypto_ctx_aes_ecb_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_ecb_init() argument
664 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_ecb_init()
668 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm) in nx_crypto_ctx_sha_init() argument
670 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA); in nx_crypto_ctx_sha_init()
673 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm) in nx_crypto_ctx_aes_xcbc_init() argument
675 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES, in nx_crypto_ctx_aes_xcbc_init()
687 void nx_crypto_ctx_exit(struct crypto_tfm *tfm) in nx_crypto_ctx_exit() argument
689 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm); in nx_crypto_ctx_exit()