PrivateKey newSecK = new DSSKeyPairPKCS8Codec().decodePrivateKey(pk);
harness.check(secK.equals(newSecK),
"DSS private key ASN.1 encoder/decoder test");
pk = ((DSSPublicKey) pubK).getEncoded(IKeyPairCodec.X509_FORMAT);
PublicKey newPubK = new DSSKeyPairX509Codec().decodePublicKey(pk);
harness.check(pubK.equals(newPubK),
"DSS public key ASN.1 encoder/decoder test");
}