Class BCFrodoKEMPublicKey

java.lang.Object
org.bouncycastle.jcajce.provider.asymmetric.frodokem.BCFrodoKEMPublicKey
All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PublicKey, FrodoKEMKey, FrodoKEMPublicKey

public class BCFrodoKEMPublicKey extends Object implements FrodoKEMPublicKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • 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 - "FRODOKEM..." followed by the parameter type.
    • getPublicData

      public byte[] getPublicData()
      Description copied from interface: FrodoKEMPublicKey
      Return the raw encoded data representing the public key (seedA || b).
      Specified by:
      getPublicData in interface FrodoKEMPublicKey
      Returns:
      the raw public key data.
    • getEncoded

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

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

      public AlgorithmParameterSpec getParams()
      Return the parameter set of this key as a java.security.spec.NamedParameterSpec, the form the JDK's own keys report through java.security.AsymmetricKey.getParams() from Java 22.
      Specified by:
      getParams in interface AsymmetricKey
      Returns:
      a NamedParameterSpec naming the parameter set on Java 11 and later, null otherwise.
    • getParameterSpec

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

      public String toString()
      Overrides:
      toString in class Object