Class Ed25519PublicKey

java.lang.Object
net.i2p.crypto.eddsa.EdDSAPublicKey
com.hierynomus.sshj.signature.Ed25519PublicKey
All Implemented Interfaces:
Serializable, Key, 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:
  • 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

    Modifier and Type
    Method
    Description
    boolean
    equals(Object other)
     
    int
     

    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 Details

    • Ed25519PublicKey

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

    • equals

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

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