| 185 | } |
| 186 | |
| 187 | BigUint rsa::Decrypt(BigUint c, BigUint d, BigUint N) { |
| 188 | BigUint result = 0; |
| 189 | mpz_powm(result.get_mpz_t(), c.get_mpz_t(), d.get_mpz_t(), N.get_mpz_t()); |
| 190 | return result; |
| 191 | } |
| 192 | |
| 193 | void std::Printable2Number(string src, BigUint &ed, BigUint &N) { |
| 194 | size_t idx = src.find(':'); |
nothing calls this directly
no test coverage detected