Class BcTlsSM2Verifier

    • Field Detail

      • identifier

        protected final byte[] identifier
    • Constructor Detail

      • BcTlsSM2Verifier

        public BcTlsSM2Verifier​(BcTlsCrypto crypto,
                                org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey,
                                byte[] identifier)
    • Method Detail

      • verifyRawSignature

        public boolean verifyRawSignature​(DigitallySigned signature,
                                          byte[] hash)
                                   throws java.io.IOException
        Description copied from interface: TlsVerifier
        Return true if the passed in signature and hash represent a real signature.
        Parameters:
        signature - the signature object containing the signature to be verified.
        hash - the hash calculated for the signature.
        Returns:
        true if signature verifies, false otherwise.
        Throws:
        java.io.IOException - in case of an exception verifying signature.