C# Class Org.BouncyCastle.Cms.CmsEnvelopedDataStreamGenerator

Inheritance: CmsEnvelopedGenerator
Mostrar archivo Open project: nonorganic/dssnet Class Usage Examples

Private Properties

Property Type Description
Open Stream
Open Stream

Public Methods

Method Description
CmsEnvelopedDataStreamGenerator ( ) : System
CmsEnvelopedDataStreamGenerator ( SecureRandom rand ) : System

Constructor allowing specific source of randomness

Open ( Stream outStream, string encryptionOid ) : Stream
Open ( Stream outStream, string encryptionOid, int keySize ) : Stream
SetBerEncodeRecipients ( bool berEncodeRecipientSet ) : void

Use a BER Set to store the recipient information.

SetBufferSize ( int bufferSize ) : void

Set the underlying string size for encapsulated data.

Private Methods

Method Description
Open ( Stream outStream, AlgorithmIdentifier encAlgID, ICipherParameters cipherParameters, Asn1EncodableVector recipientInfos ) : Stream
Open ( Stream outStream, string encryptionOid, CipherKeyGenerator keyGen ) : Stream

Generate an enveloped object that contains an CMS Enveloped Data object using the passed in key generator.

Method Details

CmsEnvelopedDataStreamGenerator() public method

public CmsEnvelopedDataStreamGenerator ( ) : System
return System

CmsEnvelopedDataStreamGenerator() public method

Constructor allowing specific source of randomness
public CmsEnvelopedDataStreamGenerator ( SecureRandom rand ) : System
rand Org.BouncyCastle.Security.SecureRandom Instance of SecureRandom to use.
return System

Open() public method

public Open ( Stream outStream, string encryptionOid ) : Stream
outStream Stream
encryptionOid string
return Stream

Open() public method

public Open ( Stream outStream, string encryptionOid, int keySize ) : Stream
outStream Stream
encryptionOid string
keySize int
return Stream

SetBerEncodeRecipients() public method

Use a BER Set to store the recipient information.
public SetBerEncodeRecipients ( bool berEncodeRecipientSet ) : void
berEncodeRecipientSet bool
return void

SetBufferSize() public method

Set the underlying string size for encapsulated data.
public SetBufferSize ( int bufferSize ) : void
bufferSize int Length of octet strings to buffer the data.
return void