SetUint64 sets the Int to an arbitrary uint64 value. The modulus must already be initialized.
(v uint64)
| 193 | // SetUint64 sets the Int to an arbitrary uint64 value. |
| 194 | // The modulus must already be initialized. |
| 195 | func (i *Int) SetUint64(v uint64) kyber.Scalar { |
| 196 | i.V.SetUint64(v).Mod(&i.V, i.M) |
| 197 | return i |
| 198 | } |
| 199 | |
| 200 | // Uint64 returns the uint64 representation of the value. |
| 201 | // If the value is not representable in an uint64 the result is undefined. |
no outgoing calls
no test coverage detected