Class Ed25519PublicKey

  • All Implemented Interfaces:
    java.io.Serializable, java.security.Key, java.security.PublicKey, net.i2p.crypto.eddsa.EdDSAKey

    public class Ed25519PublicKey
    extends net.i2p.crypto.eddsa.EdDSAPublicKey
    Our own extension of the EdDSAPublicKey that comes from ECC-25519, as that class does not implement equality. The code uses the equality of the keys as an indicator whether they're the same during host key verification.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from interface net.i2p.crypto.eddsa.EdDSAKey

        KEY_ALGORITHM
    • Constructor Summary

      Constructors 
      Constructor Description
      Ed25519PublicKey​(net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec spec)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      int hashCode()  
      • Methods inherited from class net.i2p.crypto.eddsa.EdDSAPublicKey

        getA, getAbyte, getAlgorithm, getEncoded, getFormat, getNegativeA, getParams
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ed25519PublicKey

        public Ed25519PublicKey​(net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec spec)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class net.i2p.crypto.eddsa.EdDSAPublicKey
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class net.i2p.crypto.eddsa.EdDSAPublicKey