Lines Matching refs:ocs_ecc_ctx
99 struct ocs_ecc_ctx { struct
118 static inline struct ocs_ecc_ctx *kmb_ocs_ecc_tctx(struct kpp_request *req) in kmb_ocs_ecc_tctx() argument
203 static struct ocs_ecc_dev *kmb_ocs_ecc_find_dev(struct ocs_ecc_ctx *tctx) in kmb_ocs_ecc_find_dev()
538 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_set_secret()
575 static int kmb_ecc_do_shared_secret(struct ocs_ecc_ctx *tctx, in kmb_ecc_do_shared_secret()
658 static int kmb_ecc_do_public_key(struct ocs_ecc_ctx *tctx, in kmb_ecc_do_public_key()
709 struct ocs_ecc_ctx *tctx = kmb_ocs_ecc_tctx(req); in kmb_ocs_ecc_do_one_request()
725 struct ocs_ecc_ctx *tctx = kmb_ocs_ecc_tctx(req); in kmb_ocs_ecdh_generate_public_key()
750 struct ocs_ecc_ctx *tctx = kmb_ocs_ecc_tctx(req); in kmb_ocs_ecdh_compute_shared_secret()
776 static int kmb_ecc_tctx_init(struct ocs_ecc_ctx *tctx, unsigned int curve_id) in kmb_ecc_tctx_init()
797 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_nist_p256_init_tfm()
804 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_nist_p384_init_tfm()
811 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_exit_tfm()
818 struct ocs_ecc_ctx *tctx = kpp_tfm_ctx(tfm); in kmb_ocs_ecdh_max_size()
836 .cra_ctxsize = sizeof(struct ocs_ecc_ctx),
853 .cra_ctxsize = sizeof(struct ocs_ecc_ctx),