Class BcCFBSecretKeyEncryptorFactory

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

public class BcCFBSecretKeyEncryptorFactory extends Object implements PBESecretKeyEncryptorFactory
Return a factory for 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 Details

    • BcCFBSecretKeyEncryptorFactory

      public BcCFBSecretKeyEncryptorFactory(int symmetricKeyAlgorithm, int iterationCount)
  • Method Details