| 179 | } |
| 180 | |
| 181 | BigUint rsa::Encrypt(BigUint m, BigUint e, BigUint N) { |
| 182 | BigUint result = 0; |
| 183 | mpz_powm(result.get_mpz_t(), m.get_mpz_t(), e.get_mpz_t(), N.get_mpz_t()); |
| 184 | return result; |
| 185 | } |
| 186 | |
| 187 | BigUint rsa::Decrypt(BigUint c, BigUint d, BigUint N) { |
| 188 | BigUint result = 0; |
nothing calls this directly
no test coverage detected