Edit

Share via


CoseMultiSignMessage.AddSignatureForDetached Method

Definition

Overloads

AddSignatureForDetached(Byte[], CoseSigner, Byte[])

Adds a signature for the specified content to this message.

AddSignatureForDetached(Stream, CoseSigner, ReadOnlySpan<Byte>)

Adds a signature for the specified content to this message.

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

Adds a signature for the specified content to this message.

AddSignatureForDetached(Byte[], CoseSigner, Byte[])

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

Adds a signature for the specified content to this message.

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

Parameters

detachedContent
Byte[]

The content to sign.

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

detachedContent 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.

The content is embedded on this message, use an overload that uses embedded content.

Applies to

AddSignatureForDetached(Stream, CoseSigner, ReadOnlySpan<Byte>)

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

Adds a signature for the specified content to this message.

public void AddSignatureForDetached (System.IO.Stream detachedContent, System.Security.Cryptography.Cose.CoseSigner signer, ReadOnlySpan<byte> associatedData = default);
member this.AddSignatureForDetached : System.IO.Stream * System.Security.Cryptography.Cose.CoseSigner * ReadOnlySpan<byte> -> unit
Public Sub AddSignatureForDetached (detachedContent As Stream, signer As CoseSigner, Optional associatedData As ReadOnlySpan(Of Byte) = Nothing)

Parameters

detachedContent
Stream

The content to sign.

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

detachedContent or signer is null.

detachedContent does not support reading or seeking.

-or-

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 embedded on this message, use an overload that uses embedded content.

Applies to

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

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

Adds a signature for the specified content to this message.

public void AddSignatureForDetached (ReadOnlySpan<byte> detachedContent, System.Security.Cryptography.Cose.CoseSigner signer, ReadOnlySpan<byte> associatedData = default);
member this.AddSignatureForDetached : ReadOnlySpan<byte> * System.Security.Cryptography.Cose.CoseSigner * ReadOnlySpan<byte> -> unit
Public Sub AddSignatureForDetached (detachedContent As ReadOnlySpan(Of Byte), signer As CoseSigner, Optional associatedData As ReadOnlySpan(Of Byte) = Nothing)

Parameters

detachedContent
ReadOnlySpan<Byte>

The content to sign.

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 embedded on this message, use an overload that uses embedded content.

Applies to