• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.bouncycastle.operator;
2 
3 /**
4  * Interface for ContentVerifiers that also support raw signatures that can be
5  * verified using the digest of the calculated data.
6  */
7 public interface RawContentVerifier
8 {
9     /**
10      * Verify that the expected signature value was derived from the passed in digest.
11      *
12      * @param digest digest calculated from the content.
13      * @param expected expected value of the signature
14      * @return true if the expected signature is derived from the digest, false otherwise.
15      */
verify(byte[] digest, byte[] expected)16     boolean verify(byte[] digest, byte[] expected);
17 }
18