public class BcUtil
extends java.lang.Object
| Constructor and Description |
|---|
BcUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PGPDataDecryptor |
createDataDecryptor(boolean withIntegrityPacket,
org.bouncycastle.crypto.BlockCipher engine,
byte[] key)
Create a new OpenPGP v4 data decryptor.
|
static org.bouncycastle.crypto.DefaultBufferedBlockCipher |
createSymmetricKeyWrapper(boolean forEncryption,
org.bouncycastle.crypto.BlockCipher engine,
byte[] key,
byte[] iv) |
public static PGPDataDecryptor createDataDecryptor(boolean withIntegrityPacket, org.bouncycastle.crypto.BlockCipher engine, byte[] key)
BcAEADUtil.createOpenPgpV5DataDecryptor(AEADEncDataPacket, PGPSessionKey) and
BcAEADUtil.createOpenPgpV6DataDecryptor(SymmetricEncIntegrityPacket, PGPSessionKey).withIntegrityPacket - if true, the data is contained in a SEIPD v1 packet, if false it is contained in a
SED packet.engine - decryption enginekey - decryption keypublic static org.bouncycastle.crypto.DefaultBufferedBlockCipher createSymmetricKeyWrapper(boolean forEncryption,
org.bouncycastle.crypto.BlockCipher engine,
byte[] key,
byte[] iv)