Bouncy Castle Cryptography Library 1.81

org.bouncycastle.openpgp.operator
Interface AEADSecretKeyEncryptorBuilder

All Known Implementing Classes:
BcAEADSecretKeyEncryptorBuilder, JcaAEADSecretKeyEncryptorBuilder

public interface AEADSecretKeyEncryptorBuilder

Implementation provider for AEAD-based PBESecretKeyEncryptors.


Method Summary
 PBESecretKeyEncryptor build(char[] passphrase, PublicKeyPacket pubKey)
          Build a new PBESecretKeyEncryptor using the given passphrase.
 

Method Detail

build

public PBESecretKeyEncryptor build(char[] passphrase,
                                   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 PGPKeyPair.asSubkey(KeyFingerPrintCalculator).

Parameters:
passphrase - passphrase
pubKey - public primary or subkey packet
Returns:
encryptor using AEAD

Bouncy Castle Cryptography Library 1.81