Edytuj

Udostępnij za pośrednictwem


CoseSign1Message Class

Definition

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
CoseSign1Message

Properties

Content

Gets the content of this message or null if the content was detached from the message.

(Inherited from CoseMessage)
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