org.bouncycastle.openpgp.operator.PGPSecretKeyDecryptorWithAAD Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcpg-jdk15to18 Show documentation
Show all versions of bcpg-jdk15to18 Show documentation
The Bouncy Castle Java API for handling the OpenPGP protocol. This jar contains the OpenPGP API for JDK 1.5 to JDK 1.8. The APIs can be used in conjunction with a JCE/JCA provider such as the one provided with the Bouncy Castle Cryptography APIs.
package org.bouncycastle.openpgp.operator;
import org.bouncycastle.openpgp.PGPException;
public abstract class PGPSecretKeyDecryptorWithAAD
extends PBESecretKeyDecryptor
{
public PGPSecretKeyDecryptorWithAAD(char[] passPhrase, PGPDigestCalculatorProvider calculatorProvider)
{
super(passPhrase, calculatorProvider);
}
public byte[] recoverKeyData(int encAlgorithm, byte[] key, byte[] iv, byte[] keyData, int keyOff, int keyLen)
throws PGPException
{
return recoverKeyData(encAlgorithm, key, iv, null, keyData, keyOff, keyLen);
}
public abstract byte[] recoverKeyData(int encAlgorithm, byte[] key, byte[] iv, byte[] aad, byte[] keyData, int keyOff, int keyLen) throws PGPException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy