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
|
Method Summary |
protected byte[] |
calculateDerivedKey(byte[] encodedPassword,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize)
|
byte[] |
generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
byte[] derivedKey,
org.bouncycastle.operator.GenericKey contentEncryptionKey)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BcPasswordRecipientInfoGenerator
public BcPasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password)
calculateDerivedKey
protected byte[] calculateDerivedKey(byte[] encodedPassword,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize)
throws CMSException
- Specified by:
calculateDerivedKey in class PasswordRecipientInfoGenerator
- Throws:
CMSException
generateEncryptedBytes
public byte[] generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncryptionAlgorithm,
byte[] derivedKey,
org.bouncycastle.operator.GenericKey contentEncryptionKey)
throws CMSException
- Specified by:
generateEncryptedBytes in class PasswordRecipientInfoGenerator
- Throws:
CMSException