Class BCGMSSPublicKey

java.lang.Object
org.bouncycastle.pqc.jcajce.provider.gmss.BCGMSSPublicKey
All Implemented Interfaces:
Serializable, Key, PublicKey, CipherParameters

public class BCGMSSPublicKey extends Object implements CipherParameters, PublicKey
This class implements the GMSS public key and is usually initiated by the GMSSKeyPairGenerator.
See Also:
  • Constructor Details

    • BCGMSSPublicKey

      public BCGMSSPublicKey(byte[] pub, GMSSParameters gmssParameterSet)
      The constructor
      Parameters:
      pub - a raw GMSS public key
      gmssParameterSet - an instance of GMSS Parameterset
      See Also:
    • BCGMSSPublicKey

      public BCGMSSPublicKey(GMSSPublicKeyParameters params)
  • Method Details

    • getAlgorithm

      public String getAlgorithm()
      Returns the name of the algorithm
      Specified by:
      getAlgorithm in interface Key
      Returns:
      "GMSS"
    • getPublicKeyBytes

      public byte[] getPublicKeyBytes()
      Returns:
      The GMSS public key byte array
    • getParameterSet

      public GMSSParameters getParameterSet()
      Returns:
      The GMSS Parameterset
    • toString

      public String toString()
      Returns a human readable form of the GMSS public key
      Overrides:
      toString in class Object
      Returns:
      A human readable form of the GMSS public key
    • getEncoded

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

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