CoseSign1Message.SignEmbedded 方法

定义

重载

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

对指定内容进行签名,并将其编码为包含嵌入内容的COSE_Sign1消息。

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

对指定内容进行签名,并将其编码为包含嵌入内容的COSE_Sign1消息。

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

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

对指定内容进行签名,并将其编码为包含嵌入内容的COSE_Sign1消息。

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()

参数

embeddedContent
Byte[]

要签名和要包含在消息中的内容。

signer
CoseSigner

用于对 进行签名的签名 embeddedContent者信息。

associatedData
Byte[]

与签名关联的额外数据,验证期间也必须提供这些数据。

返回

Byte[]

编码的消息。

例外

embeddedContentsignernull

中的 ProtectedHeaderssignerUnprotectedHeaders 集合具有一个或多个共同的标签。

-或-

缺少标头中指定的一 CriticalHeaders 个或多个标签。

适用于

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

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

对指定内容进行签名,并将其编码为包含嵌入内容的COSE_Sign1消息。

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()

参数

embeddedContent
ReadOnlySpan<Byte>

要签名和要包含在消息中的内容。

signer
CoseSigner

用于对 进行签名的签名 embeddedContent者信息。

associatedData
ReadOnlySpan<Byte>

与签名关联的额外数据,验证期间也必须提供这些数据。

返回

Byte[]

编码的消息。

例外

signernull

中的 ProtectedHeaderssignerUnprotectedHeaders 集合具有一个或多个共同的标签。

-或-

缺少标头中指定的一 CriticalHeaders 个或多个标签。

适用于