Table of Contents

Class CmsSignedGenerator

Namespace
Org.BouncyCastle.Cms
Assembly
BouncyCastle.Cryptography.dll
public abstract class CmsSignedGenerator
Inheritance
CmsSignedGenerator
Derived
Inherited Members

Constructors

CmsSignedGenerator()

protected CmsSignedGenerator()

CmsSignedGenerator(SecureRandom)

Constructor allowing specific source of randomness

protected CmsSignedGenerator(SecureRandom random)

Parameters

random SecureRandom

Instance of SecureRandom to use.

Fields

Data

public static readonly string Data

Field Value

string

DigestGost3411

public static readonly string DigestGost3411

Field Value

string

DigestMD5

public static readonly string DigestMD5

Field Value

string

DigestRipeMD128

public static readonly string DigestRipeMD128

Field Value

string

DigestRipeMD160

public static readonly string DigestRipeMD160

Field Value

string

DigestRipeMD256

public static readonly string DigestRipeMD256

Field Value

string

DigestSM3

public static readonly string DigestSM3

Field Value

string

DigestSha1

public static readonly string DigestSha1

Field Value

string

DigestSha224

public static readonly string DigestSha224

Field Value

string

DigestSha256

public static readonly string DigestSha256

Field Value

string

DigestSha384

public static readonly string DigestSha384

Field Value

string

DigestSha3_224

public static readonly string DigestSha3_224

Field Value

string

DigestSha3_256

public static readonly string DigestSha3_256

Field Value

string

DigestSha3_384

public static readonly string DigestSha3_384

Field Value

string

DigestSha3_512

public static readonly string DigestSha3_512

Field Value

string

DigestSha512

public static readonly string DigestSha512

Field Value

string

DigestSha512_224

public static readonly string DigestSha512_224

Field Value

string

DigestSha512_256

public static readonly string DigestSha512_256

Field Value

string

DigestShake128

public static readonly string DigestShake128

Field Value

string

DigestShake256

public static readonly string DigestShake256

Field Value

string

EncryptionDsa

public static readonly string EncryptionDsa

Field Value

string

EncryptionECDsa

public static readonly string EncryptionECDsa

Field Value

string

EncryptionECGost3410

public static readonly string EncryptionECGost3410

Field Value

string

EncryptionECGost3410_2012_256

public static readonly string EncryptionECGost3410_2012_256

Field Value

string

EncryptionECGost3410_2012_512

public static readonly string EncryptionECGost3410_2012_512

Field Value

string

EncryptionGost3410

public static readonly string EncryptionGost3410

Field Value

string

EncryptionRsa

public static readonly string EncryptionRsa

Field Value

string

EncryptionRsaPss

public static readonly string EncryptionRsaPss

Field Value

string

m_random

protected readonly SecureRandom m_random

Field Value

SecureRandom

Properties

DigestAlgorithmFinder

public IDigestAlgorithmFinder DigestAlgorithmFinder { get; set; }

Property Value

IDigestAlgorithmFinder

UseDerForCerts

[Obsolete("Will be removed. Replaced in CmsSignedDataGenerator by the similar 'UseDefiniteLength' property")]
public bool UseDerForCerts { get; set; }

Property Value

bool

UseDerForCrls

[Obsolete("Will be removed. Replaced in CmsSignedDataGenerator by the similar 'UseDefiniteLength' property")]
public bool UseDerForCrls { get; set; }

Property Value

bool

Methods

AddAttributeCertificate(X509V2AttributeCertificate)

public void AddAttributeCertificate(X509V2AttributeCertificate attrCert)

Parameters

attrCert X509V2AttributeCertificate

AddAttributeCertificates(IStore<X509V2AttributeCertificate>)

public void AddAttributeCertificates(IStore<X509V2AttributeCertificate> attrCertStore)

Parameters

attrCertStore IStore<X509V2AttributeCertificate>

AddCertificate(X509Certificate)

public void AddCertificate(X509Certificate cert)

Parameters

cert X509Certificate

AddCertificates(IStore<X509Certificate>)

public void AddCertificates(IStore<X509Certificate> certStore)

Parameters

certStore IStore<X509Certificate>

AddCrl(X509Crl)

public void AddCrl(X509Crl crl)

Parameters

crl X509Crl

AddCrls(IStore<X509Crl>)

public void AddCrls(IStore<X509Crl> crlStore)

Parameters

crlStore IStore<X509Crl>

AddOtherRevocationInfo(OtherRevocationInfoFormat)

public void AddOtherRevocationInfo(OtherRevocationInfoFormat otherRevocationInfo)

Parameters

otherRevocationInfo OtherRevocationInfoFormat

AddOtherRevocationInfo(DerObjectIdentifier, Asn1Encodable)

public void AddOtherRevocationInfo(DerObjectIdentifier otherRevInfoFormat, Asn1Encodable otherRevInfo)

Parameters

otherRevInfoFormat DerObjectIdentifier
otherRevInfo Asn1Encodable

AddOtherRevocationInfos(DerObjectIdentifier, IStore<Asn1Encodable>)

public void AddOtherRevocationInfos(DerObjectIdentifier otherRevInfoFormat, IStore<Asn1Encodable> otherRevInfoStore)

Parameters

otherRevInfoFormat DerObjectIdentifier
otherRevInfoStore IStore<Asn1Encodable>

AddOtherRevocationInfos(IStore<OtherRevocationInfoFormat>)

public void AddOtherRevocationInfos(IStore<OtherRevocationInfoFormat> otherRevocationInfoStore)

Parameters

otherRevocationInfoStore IStore<OtherRevocationInfoFormat>

AddSigners(SignerInformationStore)

public void AddSigners(SignerInformationStore signerStore)

Parameters

signerStore SignerInformationStore

GetAttributeSet(AttributeTable)

protected virtual Asn1Set GetAttributeSet(AttributeTable attr)

Parameters

attr AttributeTable

Returns

Asn1Set

GetBaseParameters(DerObjectIdentifier, AlgorithmIdentifier, byte[])

protected virtual IDictionary<CmsAttributeTableParameter, object> GetBaseParameters(DerObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash)

Parameters

contentType DerObjectIdentifier
digAlgId AlgorithmIdentifier
hash byte[]

Returns

IDictionary<CmsAttributeTableParameter, object>

GetGeneratedDigests()

public IDictionary<string, byte[]> GetGeneratedDigests()

Returns

IDictionary<string, byte[]>