@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof EncodedKeySpec)) return false;
    EncodedKeySpec that = (EncodedKeySpec) o;
    return (getFormat().equals(that.getFormat()) && Arrays.equals(getEncoded(), that.getEncoded()));
  }
Returns the public or private key in its raw format.

@return key in its raw format.
common/src/main/java/org/conscrypt/XdhKeySpec.java