Skip to content

Commit

Permalink
Update select_generic.go
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Jul 6, 2023
1 parent 4755d5a commit ebe5aca
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sm9/bn256/select_generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ebe5aca

Please sign in to comment.