Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​AsymmetricSignatureDeformatter
Assembly: System.Security.Cryptography
Inheritance: object → AsymmetricSignatureDeformatter
Represents the abstract base class from which all implementations of asymmetric signature deformatters derive.
Methods
public
void
SetHashAlgorithm​(string strName)
strName
The name of the hash algorithm to use for verifying the signature.
When overridden in a derived class, sets the hash algorithm to use for verifying the signature.
public
void
SetKey​(AsymmetricAlgorithm key)
key
The instance of an implementation of <see cref="T:System.Security.Cryptography.AsymmetricAlgorithm" /> that holds the public key.
When overridden in a derived class, sets the public key to use for verifying the signature.
public
bool
VerifySignature​(byte[] rgbHash,
byte[] rgbSignature)
rgbHash
The data signed with <paramref name="rgbSignature" /> .
rgbSignature
The signature to be verified for <paramref name="rgbHash" /> .
Returns <see langword="true" /> if <paramref name="rgbSignature" /> matches the signature computed using the specified hash algorithm and key on <paramref name="rgbHash" /> ; otherwise, <see langword="false" /> .
When overridden in a derived class, verifies the signature for the specified data.
public
bool
VerifySignature​(HashAlgorithm hash,
byte[] rgbSignature)
hash
The hash algorithm to use to verify the signature.
rgbSignature
The signature to be verified.
Returns <see langword="true" /> if the signature is valid for the hash; otherwise, <see langword="false" /> .
Verifies the signature from the specified hash value.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object