/** {@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]); }
/** {@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]); }