<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.0-beta.114" />

CmsAuthenticatedDataStreamGenerator

Constructor allowing specific source of randomness

protected Stream Open(Stream outStr, AlgorithmIdentifier macAlgId, ICipherParameters cipherParameters, Asn1EncodableVector recipientInfos)

public Stream Open(Stream outStr, string encryptionOid)

public Stream Open(Stream outStr, string encryptionOid, int keySize)

public void SetBerEncodeRecipients(bool berEncodeRecipientSet)

public void SetBufferSize(int bufferSize)