Class GMSSSigner

    • Constructor Detail

      • GMSSSigner

        public GMSSSigner​(GMSSDigestProvider digest)
        The standard constructor tries to generate the MerkleTree Algorithm identifier with the corresponding OID.
        Parameters:
        digest - the digest to use
    • Method Detail

      • init

        public void init​(boolean forSigning,
                         CipherParameters param)
        Description copied from interface: MessageSigner
        initialise the signer for signature generation or signature verification.
        Specified by:
        init in interface MessageSigner
        Parameters:
        forSigning - true if we are generating a signature, false otherwise.
        param - key parameters for signature generation.
      • generateSignature

        public byte[] generateSignature​(byte[] message)
        Signs a message.
        Specified by:
        generateSignature in interface MessageSigner
        Parameters:
        message - the message to be signed.
        Returns:
        the signature.
      • verifySignature

        public boolean verifySignature​(byte[] message,
                                       byte[] signature)
        This function verifies the signature of the message that has been updated, with the aid of the public key.
        Specified by:
        verifySignature in interface MessageSigner
        Parameters:
        message - the message
        signature - the signature associated with the message
        Returns:
        true if the signature has been verified, false otherwise.