
org.spongycastle.openpgp.operator.PGPContentVerifier Maven / Gradle / Ivy
Go to download
Spongy Castle is a package-rename (org.bouncycastle.* to org.spongycastle.*) of Bouncy Castle
intended for the Android platform. Android unfortunately ships with a stripped-down version of
Bouncy Castle, which prevents easy upgrades - Spongy Castle overcomes this and provides a full,
up-to-date version of the Bouncy Castle cryptographic libs.
package org.spongycastle.openpgp.operator;
import java.io.OutputStream;
public interface PGPContentVerifier
{
public OutputStream getOutputStream();
int getHashAlgorithm();
int getKeyAlgorithm();
long getKeyID();
/**
* @param expected expected value of the signature on the data.
* @return true if the signature verifies, false otherwise
*/
boolean verify(byte[] expected);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy