harness.check(pubK.equals(newPubK),
"RSA public key ASN.1 encoder/decoder test");
RSAPrivateKey secK = (RSAPrivateKey) kp.getPrivate();
pk = ((GnuRSAPrivateKey) secK).getEncoded(IKeyPairCodec.PKCS8_FORMAT);
PrivateKey newSecK = new RSAKeyPairPKCS8Codec().decodePrivateKey(pk);
harness.check(secK.equals(newSecK),
"RSA private key ASN.1 encoder/decoder test");
}