Package org.bouncycastle.cms.bc
Class BcPasswordRecipientInfoGenerator
java.lang.Object
org.bouncycastle.cms.PasswordRecipientInfoGenerator
org.bouncycastle.cms.bc.BcPasswordRecipientInfoGenerator
- All Implemented Interfaces:
RecipientInfoGenerator
-
Field Summary
Fields inherited from class org.bouncycastle.cms.PasswordRecipientInfoGenerator
password -
Constructor Summary
ConstructorsConstructorDescriptionBcPasswordRecipientInfoGenerator(ASN1ObjectIdentifier kekAlgorithm, char[] password) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]calculateDerivedKey(int schemeID, AlgorithmIdentifier derivationAlgorithm, int keySize) byte[]generateEncryptedBytes(AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) Methods inherited from class org.bouncycastle.cms.PasswordRecipientInfoGenerator
generate, setPasswordConversionScheme, setPRF, setSaltAndIterationCount, setSecureRandom
-
Constructor Details
-
BcPasswordRecipientInfoGenerator
-
-
Method Details
-
calculateDerivedKey
protected byte[] calculateDerivedKey(int schemeID, AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException - Specified by:
calculateDerivedKeyin classPasswordRecipientInfoGenerator- Throws:
CMSException
-
generateEncryptedBytes
public byte[] generateEncryptedBytes(AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException - Specified by:
generateEncryptedBytesin classPasswordRecipientInfoGenerator- Throws:
CMSException
-