Class BCMLDSAPublicKey

java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.mldsa.BCMLDSAPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey, MLDSAKey, MLDSAPublicKey

public class BCMLDSAPublicKey extends Object implements MLDSAPublicKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Compare this ML-DSA 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 - "ML-DSA" followed by the parameter type.
    • getPublicData

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object