Class BcAEADSecretKeyEncryptorFactory

java.lang.Object
org.bouncycastle.openpgp.operator.bc.BcAEADSecretKeyEncryptorFactory
All Implemented Interfaces:
PBESecretKeyEncryptorFactory

public class BcAEADSecretKeyEncryptorFactory extends Object implements PBESecretKeyEncryptorFactory
Return a factory for PBESecretKeyEncryptor instances which protect the secret key material by deriving a key-encryption-key using S2K.ARGON_2 S2K and apply that key using SecretKeyPacket.USAGE_AEAD.

This particular factory uses OCB + AES256 for secret key protection and requires 64MiB of RAM for the Argon2 key derivation (see S2K.Argon2Params.memoryConstrainedParameters()).