Lines Matching defs:tfm
693 /* entry points from the crypto tfm initializers */
694 int nx_crypto_ctx_aes_ccm_init(struct crypto_aead *tfm)
696 crypto_aead_set_reqsize(tfm, sizeof(struct nx_ccm_rctx));
697 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
701 int nx_crypto_ctx_aes_gcm_init(struct crypto_aead *tfm)
703 crypto_aead_set_reqsize(tfm, sizeof(struct nx_gcm_rctx));
704 return nx_crypto_ctx_init(crypto_aead_ctx(tfm), NX_FC_AES,
708 int nx_crypto_ctx_aes_ctr_init(struct crypto_skcipher *tfm)
710 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
714 int nx_crypto_ctx_aes_cbc_init(struct crypto_skcipher *tfm)
716 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
720 int nx_crypto_ctx_aes_ecb_init(struct crypto_skcipher *tfm)
722 return nx_crypto_ctx_init(crypto_skcipher_ctx(tfm), NX_FC_AES,
726 int nx_crypto_ctx_sha_init(struct crypto_tfm *tfm)
728 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_SHA, NX_MODE_SHA);
731 int nx_crypto_ctx_aes_xcbc_init(struct crypto_tfm *tfm)
733 return nx_crypto_ctx_init(crypto_tfm_ctx(tfm), NX_FC_AES,
740 * @tfm: the crypto transform pointer for the context
745 void nx_crypto_ctx_exit(struct crypto_tfm *tfm)
747 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(tfm);
756 void nx_crypto_ctx_skcipher_exit(struct crypto_skcipher *tfm)
758 nx_crypto_ctx_exit(crypto_skcipher_ctx(tfm));
761 void nx_crypto_ctx_aead_exit(struct crypto_aead *tfm)
763 struct nx_crypto_ctx *nx_ctx = crypto_aead_ctx(tfm);