byte[] pk1, pk2;
pk1 = ((GnuDHPublicKey) pubK).getEncoded(IKeyPairCodec.RAW_FORMAT);
pk2 = ((GnuDHPrivateKey) secK).getEncoded(IKeyPairCodec.RAW_FORMAT);
IKeyPairCodec codec = new DHKeyPairRawCodec();
PublicKey newPubK = codec.decodePublicKey(pk1);
PrivateKey newSecK = codec.decodePrivateKey(pk2);
harness.check(pubK.equals(newPubK),
"DH public key Raw encoder/decoder test");
harness.check(secK.equals(newSecK),
"DH private key Raw encoder/decoder test");