@Override
 public int hashCode() {
   return Arrays.hashCode(NativeCrypto.i2d_PUBKEY(key.getNativeRef()));
 }
 @Override
 public byte[] getEncoded() {
   return NativeCrypto.i2d_PUBKEY(key.getNativeRef());
 }
 @Override
 public byte[] getEncoded() {
   return NativeCrypto.i2d_PUBKEY(key.getPkeyContext());
 }