Edit

Share via


CoseMultiSignMessage.AddSignatureForEmbedded Method

Definition

Overloads

AddSignatureForEmbedded(CoseSigner, Byte[])

Adds a signature for the content embedded in this message.

AddSignatureForEmbedded(CoseSigner, ReadOnlySpan<Byte>)

Adds a signature for the content embedded in this message.

AddSignatureForEmbedded(CoseSigner, Byte[])

Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs

Adds a signature for the content embedded in this message.

public void AddSignatureForEmbedded (System.Security.Cryptography.Cose.CoseSigner signer, byte[]? associatedData = default);
member this.AddSignatureForEmbedded : System.Security.Cryptography.Cose.CoseSigner * byte[] -> unit
Public Sub AddSignatureForEmbedded (signer As CoseSigner, Optional associatedData As Byte() = Nothing)

Parameters

signer
CoseSigner

The signer information used to sign the content.

associatedData
Byte[]

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

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.

The content is detached from this message, use an overload that accepts a detached content.

Applies to

AddSignatureForEmbedded(CoseSigner, ReadOnlySpan<Byte>)

Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs
Source:
CoseMultiSignMessage.cs

Adds a signature for the content embedded in this message.

public:
 void AddSignatureForEmbedded(System::Security::Cryptography::Cose::CoseSigner ^ signer, ReadOnlySpan<System::Byte> associatedData);
public void AddSignatureForEmbedded (System.Security.Cryptography.Cose.CoseSigner signer, ReadOnlySpan<byte> associatedData);
member this.AddSignatureForEmbedded : System.Security.Cryptography.Cose.CoseSigner * ReadOnlySpan<byte> -> unit
Public Sub AddSignatureForEmbedded (signer As CoseSigner, associatedData As ReadOnlySpan(Of Byte))

Parameters

signer
CoseSigner

The signer information used to sign the content.

associatedData
ReadOnlySpan<Byte>

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

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.

The content is detached from this message, use an overload that accepts a detached content.

Applies to