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-lts8on Show documentation
Show all versions of bcpg-lts8on Show documentation
The Bouncy Castle Java APIs for the OpenPGP Protocol. The APIs are designed primarily to be used in conjunction with the BC LTS provider but may also be used with other providers providing cryptographic services.
The newest version!
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 - 2024 Weber Informatics LLC | Privacy Policy