* previously, only values that have directly been generated were recognised as valid (P, Q, N, E, D have all been set at gen_primes() time) and this resulted in a situation where encrypt/decrypt methods could have ended up working with zero values.
sawce of project 0x03 - rsa - for cryptography classes - winform wersion