コード例 #1
0
 /** {@inheritDoc} */
 public boolean verify(final InputStream in, final byte[] signature)
     throws CryptException, IOException {
   final BigInteger[] sig = decode(signature);
   return signer.verifySignature(digest.digest(in), sig[0], sig[1]);
 }
コード例 #2
0
 /** {@inheritDoc} */
 public boolean verify(final byte[] data, final byte[] signature) throws CryptException {
   final BigInteger[] sig = decode(signature);
   return signer.verifySignature(digest.digest(data), sig[0], sig[1]);
 }