func (s *secret) Set(x abstract.Secret) abstract.Secret { xs := x.(*secret) if C.BN_copy(s.bignum.bn, xs.bignum.bn) == nil { panic("BN_copy: " + getErrString()) } return s }
func (s *scalar) Set(x abstract.Scalar) abstract.Scalar { xs := x.(*scalar) if C.BN_copy(s.bignum.bn, xs.bignum.bn) == nil { panic("BN_copy: " + getErrString()) } return s }