Set both value and modulus to be equal to another Int. Since this method copies the modulus as well, it may be used as an alternative to Init().
(a kyber.Scalar)
| 152 | // Since this method copies the modulus as well, |
| 153 | // it may be used as an alternative to Init(). |
| 154 | func (i *Int) Set(a kyber.Scalar) kyber.Scalar { |
| 155 | ai := a.(*Int) |
| 156 | i.V.Set(&ai.V) |
| 157 | i.M = ai.M |
| 158 | return i |
| 159 | } |
| 160 | |
| 161 | // Clone returns a separate duplicate of this Int. |
| 162 | func (i *Int) Clone() kyber.Scalar { |
no outgoing calls
no test coverage detected