Class SignatureVerifierImplEcBc<S extends SignatureEcBc>

    • Constructor Detail

      • SignatureVerifierImplEcBc

        public SignatureVerifierImplEcBc​(SignatureConfigEcDsa<S> config,
                                         org.bouncycastle.crypto.signers.ECDSASigner signer)
        The constructor.
        Parameters:
        config - the config.
        signer - the underlying ECDSASigner.
    • Method Detail

      • verifyAfterUpdate

        public boolean verifyAfterUpdate​(S signature)
        Specified by:
        verifyAfterUpdate in interface SignatureVerifier<S extends SignatureEcBc>
        Parameters:
        signature - the byte array with the signature as raw data.
        Returns:
        true if the given signature is valid, false otherwise.
      • verifyAfterUpdate

        public boolean verifyAfterUpdate​(byte[] signature,
                                         int offset,
                                         int length)
        Specified by:
        verifyAfterUpdate in interface SignatureVerifierSimple
        Parameters:
        signature - the byte array with the signature as raw data.
        offset - the index where to start reading data from signature.
        length - the number of bytes to read from signature.
        Returns:
        true if the given signature is valid, false otherwise.