Bouncy Castle Cryptography Library 1.59

org.bouncycastle.operator
Interface RawContentVerifier


public interface RawContentVerifier

Interface for ContentVerifiers that also support raw signatures that can be verified using the digest of the calculated data.


Method Summary
 boolean verify(byte[] digest, byte[] expected)
          Verify that the expected signature value was derived from the passed in digest.
 

Method Detail

verify

public boolean verify(byte[] digest,
                      byte[] expected)
Verify that the expected signature value was derived from the passed in digest.
Parameters:
digest - digest calculated from the content.
expected - expected value of the signature
Returns:
true if the expected signature is derived from the digest, false otherwise.

Bouncy Castle Cryptography Library 1.59