throw new IllegalArgumentException("Wrong format for public keys");
throw new InvalidParameterException("Wrong format for public keys");
  public byte[] encodePublicKey(PublicKey key)  {    throw new IllegalArgumentException("Wrong format for public keys");  }