示例#1
0
func (p *point) Mul(b abstract.Point, s abstract.Scalar) abstract.Point {
	if b == nil {
		return p.Base().Mul(p, s)
	}
	C.element_pow_zn(&p.e[0], &b.(*point).e[0], &s.(*scalar).e[0])
	return p
}
示例#2
0
文件: intpoint.go 项目: Liamsi/crypto
func (p *intPoint) Mul(b abstract.Point, s abstract.Secret) abstract.Point {
	if b == nil {
		return p.Base().Mul(p, s)
	}
	C.element_pow_zn(&p.e[0], &b.(*intPoint).e[0], &s.(*secret).e[0])
	return p
}