switch from BC CipherParameters back to Java KeyPair as they are
serializable, unfortunately we now only can use the Bouncycastle
lightweight API