Init64 creates an Int with an int64 value and big.Int modulus.
(v int64, m *big.Int)
| 84 | |
| 85 | // Init64 creates an Int with an int64 value and big.Int modulus. |
| 86 | func (i *Int) Init64(v int64, m *big.Int) *Int { |
| 87 | i.M = m |
| 88 | i.BO = BigEndian |
| 89 | i.V.SetInt64(v).Mod(&i.V, m) |
| 90 | return i |
| 91 | } |
| 92 | |
| 93 | // InitBytes init the Int to a number represented in a big-endian byte string. |
| 94 | func (i *Int) InitBytes(a []byte, m *big.Int, byteOrder ByteOrder) *Int { |