Class KeyTransRecipientInfoGenerator
- Namespace
- Org.BouncyCastle.Cms
- Assembly
- BouncyCastle.Cryptography.dll
public class KeyTransRecipientInfoGenerator : RecipientInfoGenerator
- Inheritance
-
KeyTransRecipientInfoGenerator
- Implements
- Derived
- Inherited Members
Constructors
KeyTransRecipientInfoGenerator(IssuerAndSerialNumber, IKeyWrapper)
public KeyTransRecipientInfoGenerator(IssuerAndSerialNumber issuerAndSerial, IKeyWrapper keyWrapper)
Parameters
issuerAndSerialIssuerAndSerialNumberkeyWrapperIKeyWrapper
KeyTransRecipientInfoGenerator(X509Certificate, IKeyWrapper)
public KeyTransRecipientInfoGenerator(X509Certificate recipCert, IKeyWrapper keyWrapper)
Parameters
recipCertX509CertificatekeyWrapperIKeyWrapper
KeyTransRecipientInfoGenerator(byte[], IKeyWrapper)
public KeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper)
Parameters
subjectKeyIDbyte[]keyWrapperIKeyWrapper
Properties
AlgorithmDetails
protected virtual AlgorithmIdentifier AlgorithmDetails { get; }
Property Value
Methods
Generate(KeyParameter, SecureRandom)
Generate a RecipientInfo object for the given key.
public RecipientInfo Generate(KeyParameter contentEncryptionKey, SecureRandom random)
Parameters
contentEncryptionKeyKeyParameterrandomSecureRandom
Returns
Exceptions
GenerateWrappedKey(KeyParameter)
protected virtual byte[] GenerateWrappedKey(KeyParameter contentEncryptionKey)
Parameters
contentEncryptionKeyKeyParameter
Returns
- byte[]