RecipientInfoGenerator
BcPasswordRecipientInfoGenerator
, JcePasswordRecipientInfoGenerator
public abstract class PasswordRecipientInfoGenerator extends java.lang.Object implements RecipientInfoGenerator
Modifier and Type | Field | Description |
---|---|---|
protected char[] |
password |
Modifier | Constructor | Description |
---|---|---|
protected |
PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password) |
|
protected |
PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm,
char[] password,
int keySize,
int blockSize) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract byte[] |
calculateDerivedKey(int schemeID,
org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm,
int keySize) |
|
org.bouncycastle.asn1.cms.RecipientInfo |
generate(GenericKey contentEncryptionKey) |
|
protected abstract byte[] |
generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm,
byte[] derivedKey,
GenericKey contentEncryptionKey) |
|
PasswordRecipientInfoGenerator |
setPasswordConversionScheme(int schemeID) |
|
PasswordRecipientInfoGenerator |
setPRF(PasswordRecipient.PRF prf) |
|
PasswordRecipientInfoGenerator |
setSaltAndIterationCount(byte[] salt,
int iterationCount) |
|
PasswordRecipientInfoGenerator |
setSecureRandom(java.security.SecureRandom random) |
protected PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password)
protected PasswordRecipientInfoGenerator(org.bouncycastle.asn1.ASN1ObjectIdentifier kekAlgorithm, char[] password, int keySize, int blockSize)
public PasswordRecipientInfoGenerator setPasswordConversionScheme(int schemeID)
public PasswordRecipientInfoGenerator setPRF(PasswordRecipient.PRF prf)
public PasswordRecipientInfoGenerator setSaltAndIterationCount(byte[] salt, int iterationCount)
public PasswordRecipientInfoGenerator setSecureRandom(java.security.SecureRandom random)
public org.bouncycastle.asn1.cms.RecipientInfo generate(GenericKey contentEncryptionKey) throws CMSException
generate
in interface RecipientInfoGenerator
CMSException
protected abstract byte[] calculateDerivedKey(int schemeID, org.bouncycastle.asn1.x509.AlgorithmIdentifier derivationAlgorithm, int keySize) throws CMSException
CMSException
protected abstract byte[] generateEncryptedBytes(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm, byte[] derivedKey, GenericKey contentEncryptionKey) throws CMSException
CMSException