Exemple #1
0
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
}
Exemple #2
0
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
}