MessageSigner Class |
Namespace: SysadminsLV.PKI.Tools.MessageOperations
The MessageSigner type exposes the following members.
| Name | Description | |
|---|---|---|
| MessageSigner(X509Certificate2) |
Initializes a new instance of the MessageSigner class from signer certificate and
default hash algorithm. Default hash algorithm is SHA256.
| |
| MessageSigner(X509Certificate2, Oid2) |
Initializes a new instance of the MessageSigner class from signer certificate and
client-provided hash algorithm.
|
| Name | Description | |
|---|---|---|
| HashingAlgorithm |
Gets or sets the hashing algorithm that is used to calculate the hash during signing or signature verification
processes.
| |
| PaddingScheme |
Gets or sets signature padding scheme for RSA signature creation and validation.
Default is PKCS1.
| |
| PssSaltByteCount |
Gets or sets the size, in bytes, of the random salt to use for the PSS padding.
Default value matches the hash output length: 16 bytes for MD5, 20 bytes for SHA1, 32 bytes for
SHA256, 48 bytes for SHA384 and 64 bytes for SHA512 hashing algorithm.
| |
| PublicKeyAlgorithm |
Gets public key algorithm.
| |
| SignatureAlgorithm |
Gets resulting signature algorithm identifier.
| |
| SignerCertificate |
Gets the certificate associated with the current instance of MessageSigner.
|
| Name | Description | |
|---|---|---|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Overrides ObjectFinalize.) | |
| GetAlgorithmIdentifier |
Gets ASN-encoded algorithm identifier based on current configuration.
| |
| 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.) | |
| SignData |
Signs the data with signer's private key and specified hash algorithm.
| |
| SignHash |
Signs the hash with signer's private key.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| VerifyData(Byte, Byte) |
Verifies that the specified signature matches the specified hash.
| |
| VerifyData(SignedContentBlob, PublicKey) |
Verifies signature of a signed blob by using specified public key.
| |
| VerifyHash |
Verifies that the specified signature matches the specified hash.
|