SetInt64 sets the Int to an arbitrary 64-bit "small integer" value. The modulus must already be initialized.
(v int64)
| 180 | // SetInt64 sets the Int to an arbitrary 64-bit "small integer" value. |
| 181 | // The modulus must already be initialized. |
| 182 | func (i *Int) SetInt64(v int64) kyber.Scalar { |
| 183 | i.V.SetInt64(v).Mod(&i.V, i.M) |
| 184 | return i |
| 185 | } |
| 186 | |
| 187 | // Int64 returns the int64 representation of the value. |
| 188 | // If the value is not representable in an int64 the result is undefined. |
no outgoing calls