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
ConstructorDescriptionBcPasswordRecipientInfoGenerator
(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
calculateDerivedKey
(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) byte[]
generateEncryptedBytes
(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) Methods inherited from class org.bouncycastle.cms.PasswordRecipientInfoGenerator
generate, setPasswordConversionScheme, setPRF, setSaltAndIterationCount, setSecureRandom
-
Constructor Details
-
BcPasswordRecipientInfoGenerator
public BcPasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password)
-
-
Method Details
-
calculateDerivedKey
protected byte[] calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException - Specified by:
calculateDerivedKey
in classPasswordRecipientInfoGenerator
- Throws:
CMSException
-
generateEncryptedBytes
public byte[] generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException - Specified by:
generateEncryptedBytes
in classPasswordRecipientInfoGenerator
- Throws:
CMSException
-