public class BcCFBSecretKeyEncryptorFactory extends java.lang.Object implements PBESecretKeyEncryptorFactory
PBESecretKeyEncryptor instances which protect the secret key material by deriving
a key-encryption-key using S2K.SALTED_AND_ITERATED S2K and apply
that key using SecretKeyPacket.USAGE_SHA1 (CFB mode).
This particular factory derives a key-encryption-key via salted+iterated S2K derivation using SHA256 and uses AES256 for secret key protection.
| Constructor and Description |
|---|
BcCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm,
int iterationCount) |
| Modifier and Type | Method and Description |
|---|---|
PBESecretKeyEncryptor |
build(char[] passphrase,
PublicKeyPacket pubKeyPacket)
Build a new
PBESecretKeyEncryptor instance from the given passphrase and public key packet. |
public BcCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm,
int iterationCount)
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)