Init a Int with a given big.Int value and modulus pointer. Note that the value is copied; the modulus is not.
(V *big.Int, m *big.Int)
| 76 | // Init a Int with a given big.Int value and modulus pointer. |
| 77 | // Note that the value is copied; the modulus is not. |
| 78 | func (i *Int) Init(V *big.Int, m *big.Int) *Int { |
| 79 | i.M = m |
| 80 | i.BO = BigEndian |
| 81 | i.V.Set(V).Mod(&i.V, m) |
| 82 | return i |
| 83 | } |
| 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 { |