Top Description Methods
org.bouncycastle.openpgp.operator

public Interface AEADSecretKeyEncryptorBuilder

Known Direct Implementers
org.bouncycastle.openpgp.operator.bc.BcAEADSecretKeyEncryptorBuilder, org.bouncycastle.openpgp.operator.jcajce.JcaAEADSecretKeyEncryptorBuilder
Imports
org.bouncycastle.bcpg.PublicKeyPacket

Implementation provider for AEAD-based PBESecretKeyEncryptors.

Method Summary

Modifier and TypeMethod and Description
public PBESecretKeyEncryptor

Returns:

encryptor using AEAD
build
(char[]
passphrase
passphrase
,
final PublicKeyPacket
public primary or subkey packet
pubKey
)

Build a new PBESecretKeyEncryptor using the given passphrase.

Method Detail

buildback to summary
public PBESecretKeyEncryptor build(char[] passphrase, final PublicKeyPacket pubKey)

Build a new PBESecretKeyEncryptor using the given passphrase.

Note

As the AEAD protection mechanism includes the public key packet of the key into the calculation, if the key you want to protect is supposed to be a subkey, you need to convert it to one before calling this method. See org.bouncycastle.openpgp.PGPKeyPair#asSubkey(KeyFingerPrintCalculator).

Parameters
passphrase:char[]

passphrase

pubKey:PublicKeyPacket

public primary or subkey packet

Returns:PBESecretKeyEncryptor

encryptor using AEAD