@Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((algorithm == null) ? 0 : algorithm.hashCode());
        result = prime * result + Arrays.hashCode(encoded);
        return result;
    }
A simple but useless key class that holds X.509 public key information when
the appropriate KeyFactory for the key algorithm is not available.
common/src/main/java/org/conscrypt/X509PublicKey.java