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
randomSecureRandomInstance of
SecureRandomto use.
Fields
Data
public static readonly string Data
Field Value
DigestGost3411
public static readonly string DigestGost3411
Field Value
DigestMD5
public static readonly string DigestMD5
Field Value
DigestRipeMD128
public static readonly string DigestRipeMD128
Field Value
DigestRipeMD160
public static readonly string DigestRipeMD160
Field Value
DigestRipeMD256
public static readonly string DigestRipeMD256
Field Value
DigestSM3
public static readonly string DigestSM3
Field Value
DigestSha1
public static readonly string DigestSha1
Field Value
DigestSha224
public static readonly string DigestSha224
Field Value
DigestSha256
public static readonly string DigestSha256
Field Value
DigestSha384
public static readonly string DigestSha384
Field Value
DigestSha3_224
public static readonly string DigestSha3_224
Field Value
DigestSha3_256
public static readonly string DigestSha3_256
Field Value
DigestSha3_384
public static readonly string DigestSha3_384
Field Value
DigestSha3_512
public static readonly string DigestSha3_512
Field Value
DigestSha512
public static readonly string DigestSha512
Field Value
DigestSha512_224
public static readonly string DigestSha512_224
Field Value
DigestSha512_256
public static readonly string DigestSha512_256
Field Value
DigestShake128
public static readonly string DigestShake128
Field Value
DigestShake256
public static readonly string DigestShake256
Field Value
EncryptionDsa
public static readonly string EncryptionDsa
Field Value
EncryptionECDsa
public static readonly string EncryptionECDsa
Field Value
EncryptionECGost3410
public static readonly string EncryptionECGost3410
Field Value
EncryptionECGost3410_2012_256
public static readonly string EncryptionECGost3410_2012_256
Field Value
EncryptionECGost3410_2012_512
public static readonly string EncryptionECGost3410_2012_512
Field Value
EncryptionGost3410
public static readonly string EncryptionGost3410
Field Value
EncryptionRsa
public static readonly string EncryptionRsa
Field Value
EncryptionRsaPss
public static readonly string EncryptionRsaPss
Field Value
m_random
protected readonly SecureRandom m_random
Field Value
Properties
DigestAlgorithmFinder
public IDigestAlgorithmFinder DigestAlgorithmFinder { get; set; }
Property Value
UseDerForCerts
[Obsolete("Will be removed. Replaced in CmsSignedDataGenerator by the similar 'UseDefiniteLength' property")]
public bool UseDerForCerts { get; set; }
Property Value
UseDerForCrls
[Obsolete("Will be removed. Replaced in CmsSignedDataGenerator by the similar 'UseDefiniteLength' property")]
public bool UseDerForCrls { get; set; }
Property Value
Methods
AddAttributeCertificate(X509V2AttributeCertificate)
public void AddAttributeCertificate(X509V2AttributeCertificate attrCert)
Parameters
attrCertX509V2AttributeCertificate
AddAttributeCertificates(IStore<X509V2AttributeCertificate>)
public void AddAttributeCertificates(IStore<X509V2AttributeCertificate> attrCertStore)
Parameters
attrCertStoreIStore<X509V2AttributeCertificate>
AddCertificate(X509Certificate)
public void AddCertificate(X509Certificate cert)
Parameters
certX509Certificate
AddCertificates(IStore<X509Certificate>)
public void AddCertificates(IStore<X509Certificate> certStore)
Parameters
certStoreIStore<X509Certificate>
AddCrl(X509Crl)
public void AddCrl(X509Crl crl)
Parameters
crlX509Crl
AddCrls(IStore<X509Crl>)
public void AddCrls(IStore<X509Crl> crlStore)
Parameters
AddOtherRevocationInfo(OtherRevocationInfoFormat)
public void AddOtherRevocationInfo(OtherRevocationInfoFormat otherRevocationInfo)
Parameters
otherRevocationInfoOtherRevocationInfoFormat
AddOtherRevocationInfo(DerObjectIdentifier, Asn1Encodable)
public void AddOtherRevocationInfo(DerObjectIdentifier otherRevInfoFormat, Asn1Encodable otherRevInfo)
Parameters
otherRevInfoFormatDerObjectIdentifierotherRevInfoAsn1Encodable
AddOtherRevocationInfos(DerObjectIdentifier, IStore<Asn1Encodable>)
public void AddOtherRevocationInfos(DerObjectIdentifier otherRevInfoFormat, IStore<Asn1Encodable> otherRevInfoStore)
Parameters
otherRevInfoFormatDerObjectIdentifierotherRevInfoStoreIStore<Asn1Encodable>
AddOtherRevocationInfos(IStore<OtherRevocationInfoFormat>)
public void AddOtherRevocationInfos(IStore<OtherRevocationInfoFormat> otherRevocationInfoStore)
Parameters
otherRevocationInfoStoreIStore<OtherRevocationInfoFormat>
AddSigners(SignerInformationStore)
public void AddSigners(SignerInformationStore signerStore)
Parameters
signerStoreSignerInformationStore
GetAttributeSet(AttributeTable)
protected virtual Asn1Set GetAttributeSet(AttributeTable attr)
Parameters
attrAttributeTable
Returns
GetBaseParameters(DerObjectIdentifier, AlgorithmIdentifier, byte[])
protected virtual IDictionary<CmsAttributeTableParameter, object> GetBaseParameters(DerObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash)
Parameters
contentTypeDerObjectIdentifierdigAlgIdAlgorithmIdentifierhashbyte[]
Returns
GetGeneratedDigests()
public IDictionary<string, byte[]> GetGeneratedDigests()
Returns
- IDictionary<string, byte[]>