Table of Contents

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

issuerAndSerial IssuerAndSerialNumber
keyWrapper IKeyWrapper

KeyTransRecipientInfoGenerator(X509Certificate, IKeyWrapper)

public KeyTransRecipientInfoGenerator(X509Certificate recipCert, IKeyWrapper keyWrapper)

Parameters

recipCert X509Certificate
keyWrapper IKeyWrapper

KeyTransRecipientInfoGenerator(byte[], IKeyWrapper)

public KeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper)

Parameters

subjectKeyID byte[]
keyWrapper IKeyWrapper

Properties

AlgorithmDetails

protected virtual AlgorithmIdentifier AlgorithmDetails { get; }

Property Value

AlgorithmIdentifier

Methods

Generate(KeyParameter, SecureRandom)

Generate a RecipientInfo object for the given key.

public RecipientInfo Generate(KeyParameter contentEncryptionKey, SecureRandom random)

Parameters

contentEncryptionKey KeyParameter

A KeyParameter

random SecureRandom

A SecureRandom

Returns

RecipientInfo

A RecipientInfo

Exceptions

GeneralSecurityException

GenerateWrappedKey(KeyParameter)

protected virtual byte[] GenerateWrappedKey(KeyParameter contentEncryptionKey)

Parameters

contentEncryptionKey KeyParameter

Returns

byte[]