Top Description Constructors Methods
org.bouncycastle.openpgp.operator.bc

public Class BcCFBSecretKeyEncryptorFactory

extends Object
implements PBESecretKeyEncryptorFactory
Class Inheritance
All Implemented Interfaces
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorFactory
Imports
org.bouncycastle.bcpg.HashAlgorithmTags, .PublicKeyPacket, .SymmetricKeyAlgorithmTags, org.bouncycastle.openpgp.PGPException, org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor, .PBESecretKeyEncryptorFactory, .PGPDigestCalculator

Return a factory for PBESecretKeyEncryptor instances which protect the secret key material by deriving a key-encryption-key using org.bouncycastle.bcpg.S2K#SALTED_AND_ITERATED S2K and apply that key using org.bouncycastle.bcpg.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 Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public PBESecretKeyEncryptor
build(char[]
passphrase
passphrase
,
PublicKeyPacket
public-key packet of the key to protect (needed for AEAD)
pubKeyPacket
)

Implements org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorFactory.build.

Build a new PBESecretKeyEncryptor instance from the given passphrase and public key packet.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BcCFBSecretKeyEncryptorFactoryback to summary
public BcCFBSecretKeyEncryptorFactory()

Method Detail

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

Implements org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorFactory.build.

Doc from org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorFactory.build.

Build a new PBESecretKeyEncryptor instance from the given passphrase and public key packet.

Parameters
passphrase:char[]

passphrase

pubKeyPacket:PublicKeyPacket

public-key packet of the key to protect (needed for AEAD)

Returns:PBESecretKeyEncryptor

key encryptor

Annotations
@Override