From ebe5aca2d82364896e72ac98d2099158bd6ec057 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 6 Jul 2023 17:56:10 +0800 Subject: [PATCH] Update select_generic.go --- sm9/bn256/select_generic.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sm9/bn256/select_generic.go b/sm9/bn256/select_generic.go index 1107bdf4..6eec8e8d 100644 --- a/sm9/bn256/select_generic.go +++ b/sm9/bn256/select_generic.go @@ -34,6 +34,15 @@ func gfp4Copy(res, in *gfP4) { gfpCopy(&res.y.y, &in.y.y) } +func gfp6Copy(res, in *gfP6) { + gfpCopy(&res.x.x, &in.x.x) + gfpCopy(&res.x.y, &in.x.y) + gfpCopy(&res.y.x, &in.y.x) + gfpCopy(&res.y.y, &in.y.y) + gfpCopy(&res.z.x, &in.z.x) + gfpCopy(&res.z.y, &in.z.y) +} + func gfp12Copy(res, in *gfP12) { gfpCopy(&res.x.x.x, &in.x.x.x) gfpCopy(&res.x.x.y, &in.x.x.y)