|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.openpgp.operator.bc.BcAEADSecretKeyEncryptorFactory
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()).
| Constructor Summary | |
BcAEADSecretKeyEncryptorFactory()
|
|
| Method Summary | |
PBESecretKeyEncryptor |
build(char[] passphrase,
PublicKeyPacket pubKeyPacket)
Build a new PBESecretKeyEncryptor instance from the given passphrase and public key packet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BcAEADSecretKeyEncryptorFactory()
| Method Detail |
public PBESecretKeyEncryptor build(char[] passphrase,
PublicKeyPacket pubKeyPacket)
PBESecretKeyEncryptorFactoryPBESecretKeyEncryptor instance from the given passphrase and public key packet.
build in interface PBESecretKeyEncryptorFactorypassphrase - passphrasepubKeyPacket - public-key packet of the key to protect (needed for AEAD)
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||