다음을 통해 공유


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[]

인코딩된 메시지입니다.

예외

embeddedContent 또는 signernull인 경우

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 레이블 중 하나 이상이 없습니다.

적용 대상