संपादित करें

इसके माध्यम से साझा किया गया


CoseSign1Message.SignEmbedded Method

Definition

Overloads

SignEmbedded(Byte[], CoseSigner, Byte[])

Signs the specified content and encodes it as a COSE_Sign1 message with embedded content.

SignEmbedded(ReadOnlySpan<Byte>, CoseSigner, ReadOnlySpan<Byte>)

Signs the specified content and encodes it as a COSE_Sign1 message with embedded content.

SignEmbedded(Byte[], CoseSigner, Byte[])

Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs

Signs the specified content and encodes it as a COSE_Sign1 message with embedded content.

public static byte[] SignEmbedded (byte[] embeddedContent, System.Security.Cryptography.Cose.CoseSigner signer, byte[]? associatedData = default);
static member SignEmbedded : byte[] * System.Security.Cryptography.Cose.CoseSigner * byte[] -> byte[]
Public Shared Function SignEmbedded (embeddedContent As Byte(), signer As CoseSigner, Optional associatedData As Byte() = Nothing) As Byte()

Parameters

embeddedContent
Byte[]

The content to sign and to include in the message.

signer
CoseSigner

The signer information used to sign embeddedContent.

associatedData
Byte[]

The extra data associated with the signature, which must also be provided during verification.

Returns

Byte[]

The encoded message.

Exceptions

embeddedContent or signer is null.

The ProtectedHeaders and UnprotectedHeaders collections in signer have one or more labels in common.

-or-

One or more of the labels specified in a CriticalHeaders header is missing.

Applies to

SignEmbedded(ReadOnlySpan<Byte>, CoseSigner, ReadOnlySpan<Byte>)

Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs
Source:
CoseSign1Message.cs

Signs the specified content and encodes it as a COSE_Sign1 message with embedded content.

public static byte[] SignEmbedded (ReadOnlySpan<byte> embeddedContent, System.Security.Cryptography.Cose.CoseSigner signer, ReadOnlySpan<byte> associatedData = default);
static member SignEmbedded : ReadOnlySpan<byte> * System.Security.Cryptography.Cose.CoseSigner * ReadOnlySpan<byte> -> byte[]
Public Shared Function SignEmbedded (embeddedContent As ReadOnlySpan(Of Byte), signer As CoseSigner, Optional associatedData As ReadOnlySpan(Of Byte) = Nothing) As Byte()

Parameters

embeddedContent
ReadOnlySpan<Byte>

The content to sign and to include in the message.

signer
CoseSigner

The signer information used to sign embeddedContent.

associatedData
ReadOnlySpan<Byte>

The extra data associated with the signature, which must also be provided during verification.

Returns

Byte[]

The encoded message.

Exceptions

signer is null.

The ProtectedHeaders and UnprotectedHeaders collections in signer have one or more labels in common.

-or-

One or more of the labels specified in a CriticalHeaders header is missing.

Applies to