КриптоПро .NET
Search Results for

    Показать/Скрыть содержание

    Class CpEnvelopedCms

    Inheritance
    object
    CpEnvelopedCms
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: CryptoPro.Security.Cryptography
    Assembly: CryptoPro.Security.Cryptography.Pkcs.dll
    Syntax
    public class CpEnvelopedCms

    Constructors

    CpEnvelopedCms()

    Declaration
    public CpEnvelopedCms()

    CpEnvelopedCms(ContentInfo)

    Declaration
    public CpEnvelopedCms(ContentInfo contentInfo)
    Parameters
    Type Name Description
    ContentInfo contentInfo

    CpEnvelopedCms(ContentInfo, AlgorithmIdentifier)

    Declaration
    public CpEnvelopedCms(ContentInfo contentInfo, AlgorithmIdentifier encryptionAlgorithm)
    Parameters
    Type Name Description
    ContentInfo contentInfo
    AlgorithmIdentifier encryptionAlgorithm

    Properties

    Certificates

    Declaration
    public CpX509Certificate2Collection Certificates { get; }
    Property Value
    Type Description
    CpX509Certificate2Collection

    ContentEncryptionAlgorithm

    Declaration
    public AlgorithmIdentifier ContentEncryptionAlgorithm { get; }
    Property Value
    Type Description
    AlgorithmIdentifier

    ContentInfo

    Declaration
    public ContentInfo ContentInfo { get; }
    Property Value
    Type Description
    ContentInfo

    RecipientInfos

    Declaration
    public CpRecipientInfoCollection RecipientInfos { get; }
    Property Value
    Type Description
    CpRecipientInfoCollection

    UnprotectedAttributes

    Declaration
    public CpCryptographicAttributeObjectCollection UnprotectedAttributes { get; }
    Property Value
    Type Description
    CpCryptographicAttributeObjectCollection

    Version

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    int

    Methods

    Decode(byte[])

    Declaration
    public void Decode(byte[] encodedMessage)
    Parameters
    Type Name Description
    byte[] encodedMessage

    Decode(ReadOnlySpan<byte>)

    Decodes the provided data as a CMS/PKCS#7 EnvelopedData message.

    Declaration
    public void Decode(ReadOnlySpan<byte> encodedMessage)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> encodedMessage

    The data to decode.

    Exceptions
    Type Condition
    CryptographicException

    The encodedMessage parameter was not successfully decoded.

    Decrypt()

    Declaration
    public void Decrypt()

    Decrypt(CpRecipientInfo)

    Declaration
    public void Decrypt(CpRecipientInfo recipientInfo)
    Parameters
    Type Name Description
    CpRecipientInfo recipientInfo

    Decrypt(CpRecipientInfo, CpX509Certificate2Collection)

    Declaration
    public void Decrypt(CpRecipientInfo recipientInfo, CpX509Certificate2Collection extraStore)
    Parameters
    Type Name Description
    CpRecipientInfo recipientInfo
    CpX509Certificate2Collection extraStore

    Decrypt(CpRecipientInfo, AsymmetricAlgorithm?)

    Declaration
    public void Decrypt(CpRecipientInfo recipientInfo, AsymmetricAlgorithm? privateKey)
    Parameters
    Type Name Description
    CpRecipientInfo recipientInfo
    AsymmetricAlgorithm privateKey

    Decrypt(CpX509Certificate2Collection)

    Declaration
    public void Decrypt(CpX509Certificate2Collection extraStore)
    Parameters
    Type Name Description
    CpX509Certificate2Collection extraStore

    Encode()

    Declaration
    public byte[] Encode()
    Returns
    Type Description
    byte[]

    Encrypt(CpCmsRecipient)

    Declaration
    public void Encrypt(CpCmsRecipient recipient)
    Parameters
    Type Name Description
    CpCmsRecipient recipient

    Encrypt(CpCmsRecipientCollection)

    Declaration
    public void Encrypt(CpCmsRecipientCollection recipients)
    Parameters
    Type Name Description
    CpCmsRecipientCollection recipients
    В этом разделе
    Наверх Generated by DocFX