Lines Matching defs:tfm
694 /* entry points from the crypto tfm initializers */
695 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm)
697 crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx));
698 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
702 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm)
704 crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx));
705 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
709 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm)
711 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
715 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm)
717 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
721 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm)
723 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
727 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm)
729 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA);
732 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm)
734 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES,
741 * @tfm: the crypto transform pointer for the context
746 void nx_crypto_ctx_exit(struct crypto_tfm *tfm)
748 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm);
757 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm)
759 nx_crypto_ctx_exit(crypto_skcipher_ctx(tfm));
762 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm)
764 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm);