共用方式為


SignatureProvider Class

Definition

Provides signature services, signing and verifying.

public abstract class SignatureProvider : IDisposable
type SignatureProvider = class
    interface IDisposable
Public MustInherit Class SignatureProvider
Implements IDisposable
Inheritance
SignatureProvider
Derived
Implements

Constructors

SignatureProvider(SecurityKey, String)

Initializes a new instance of the SignatureProvider class used to create and verify signatures.

Properties

Algorithm

Gets the signature algorithm.

Context

Gets or sets a user context for a SignatureProvider.

CryptoProviderCache

Gets or sets the CryptoProviderCache that is associated with this SignatureProvider

Key

Gets the SecurityKey.

WillCreateSignatures

Gets or sets a bool indicating if this SignatureProvider is expected to create signatures.

Methods

Dispose()

Calls Dispose(Boolean) and SuppressFinalize(Object)

Dispose(Boolean)

Can be over written in descendants to dispose of internal components.

Sign(Byte[], Int32, Int32)

Produces a signature over the specified region of the input.

Sign(Byte[])

This must be overridden to produce a signature over the 'input'.

Sign(ReadOnlySpan<Byte>, Span<Byte>, Int32)

Produces a signature over the data and writes it to destination.

Verify(Byte[], Byte[])

Verifies that the signature over input using the SecurityKey and Algorithm specified by this SignatureProvider are consistent.

Verify(Byte[], Int32, Int32, Byte[], Int32, Int32)

Verifies that a signature created over the 'input' matches the signature. Using SecurityKey and 'algorithm' passed to SignatureProvider(SecurityKey, String).

Applies to