Class BCSLHDSAPublicKey

java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.slhdsa.BCSLHDSAPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey, SLHDSAKey, SLHDSAPublicKey

public class BCSLHDSAPublicKey extends Object implements SLHDSAPublicKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Compare this SPHINCS-256 public key with another object.
      Overrides:
      equals in class Object
      Parameters:
      o - the other object
      Returns:
      the result of the comparison
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAlgorithm

      public final String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
      Returns:
      name of the algorithm - "SLH-DSA" followed by the parameter type.
    • getPublicData

      public byte[] getPublicData()
      Description copied from interface: SLHDSAPublicKey
      Return the raw encoded data representing the public key: seed || root.
      Specified by:
      getPublicData in interface SLHDSAPublicKey
      Returns:
      the concatenation of the seed and root values.
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key
    • getParameterSpec

      public SLHDSAParameterSpec getParameterSpec()
      Description copied from interface: SLHDSAKey
      Return the parameters for this key.
      Specified by:
      getParameterSpec in interface SLHDSAKey
      Returns:
      a SLHDSAParameterSpec
    • toString

      public String toString()
      Overrides:
      toString in class Object