| 191 | } |
| 192 | |
| 193 | void BigInteger::getText(string& str, unsigned int radix) const |
| 194 | { |
| 195 | int size; |
| 196 | CHECK_MP(mp_radix_size(const_cast<mp_int*>(&t), radix, &size)); |
| 197 | str.resize(size - 1, ' '); |
| 198 | CHECK_MP(mp_toradix(const_cast<mp_int*>(&t), str.begin(), radix)); |
| 199 | } |
| 200 | |
| 201 | BigInteger BigInteger::modPow(const BigInteger& pow, const BigInteger& mod) const |
| 202 | { |