Class BCMLKEMPublicKey

java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.mlkem.BCMLKEMPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey, MLKEMKey, MLKEMPublicKey

public class BCMLKEMPublicKey extends Object implements MLKEMPublicKey
See Also:
  • Constructor Details

  • Method Details

    • equals

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

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

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

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

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

      public String toString()
      Overrides:
      toString in class Object