Package org.bouncycastle.cms.bc
Class BcPasswordRecipientInfoGenerator
- java.lang.Object
-
- org.bouncycastle.cms.PasswordRecipientInfoGenerator
-
- org.bouncycastle.cms.bc.BcPasswordRecipientInfoGenerator
-
- All Implemented Interfaces:
RecipientInfoGenerator
public class BcPasswordRecipientInfoGenerator extends PasswordRecipientInfoGenerator
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.cms.PasswordRecipientInfoGenerator
password
-
-
Constructor Summary
Constructors Constructor Description BcPasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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
-
-