SignatureProvider 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.
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 |
Sign(Byte[]) |
This must be overridden to produce a signature over the 'input'. |
Sign(ReadOnlySpan<Byte>, Span<Byte>, Int32) |
Produces a signature over the |
Verify(Byte[], Byte[]) |
Verifies that the |
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). |