CoseSign1Message Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a single-signature COSE_Sign1 message.
public ref class CoseSign1Message sealed : System::Security::Cryptography::Cose::CoseMessage
public sealed class CoseSign1Message : System.Security.Cryptography.Cose.CoseMessage
type CoseSign1Message = class
inherit CoseMessage
Public NotInheritable Class CoseSign1Message
Inherits CoseMessage
- Inheritance
Properties
Content |
Gets the content of this message or |
ProtectedHeaders |
Gets the protected header parameters associated with this message. (Inherited from CoseMessage) |
RawProtectedHeaders |
Gets the raw bytes of the protected header parameters associated with this message. (Inherited from CoseMessage) |
Signature |
Gets the digital signature. |
UnprotectedHeaders |
Gets the unprotected header parameters associated with this message. (Inherited from CoseMessage) |
Methods
Encode() |
Encodes this message as CBOR. (Inherited from CoseMessage) |
Encode(Span<Byte>) |
Encodes this message as CBOR. (Inherited from CoseMessage) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEncodedLength() |
Calculates the number of bytes produced by encoding this message. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
SignDetached(Byte[], CoseSigner, Byte[]) |
Signs the specified content and encodes it as a COSE_Sign1 message with detached content. |
SignDetached(ReadOnlySpan<Byte>, CoseSigner, ReadOnlySpan<Byte>) |
Signs the specified content and encodes it as a COSE_Sign1 message with detached content. |
SignDetached(Stream, CoseSigner, ReadOnlySpan<Byte>) |
Signs the specified content and encodes it as a COSE_Sign1 message with detached content. |
SignDetachedAsync(Stream, CoseSigner, ReadOnlyMemory<Byte>, CancellationToken) |
Asynchronously signs the specified content and encodes it as a COSE_Sign1 message with detached content. |
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. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryEncode(Span<Byte>, Int32) |
Attempts to encode this message into the specified buffer. |
TrySignDetached(ReadOnlySpan<Byte>, Span<Byte>, CoseSigner, Int32, ReadOnlySpan<Byte>) |
Attempts to sign the specified content and encode it as a COSE_Sign1 message with detached content into the specified buffer. |
TrySignEmbedded(ReadOnlySpan<Byte>, Span<Byte>, CoseSigner, Int32, ReadOnlySpan<Byte>) |
Attempts to sign the specified content and encode it as a COSE_Sign1 message with embedded content into the specified buffer. |
VerifyDetached(AsymmetricAlgorithm, Byte[], Byte[]) |
Verifies that the signature is valid for the content using the specified key. |
VerifyDetached(AsymmetricAlgorithm, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>) |
Verifies that the signature is valid for the content using the specified key. |
VerifyDetached(AsymmetricAlgorithm, Stream, ReadOnlySpan<Byte>) |
Verifies that the signature is valid for the content using the specified key. |
VerifyDetachedAsync(AsymmetricAlgorithm, Stream, ReadOnlyMemory<Byte>, CancellationToken) |
Asynchronously verifies that the signature is valid for the content using the specified key. |
VerifyEmbedded(AsymmetricAlgorithm, Byte[]) |
Verifies that the signature is valid for the content using the specified key. |
VerifyEmbedded(AsymmetricAlgorithm, ReadOnlySpan<Byte>) |
Verifies that the signature is valid for the content using the specified key. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기