Skip to Content
Programming .NET Security
book

Programming .NET Security

by Adam Freeman, Allen Jones
June 2003
Intermediate to advanced
714 pages
22h 8m
English
O'Reilly Media, Inc.
Content preview from Programming .NET Security

Name

AsymmetricSignatureDeformatter

Synopsis

public abstract class AsymmetricSignatureDeformatter {
// Public Constructors
   public AsymmetricSignatureDeformatter(  );
// Public Instance Methods
   public abstract void SetHashAlgorithm(string strName);
   public abstract void SetKey(AsymmetricAlgorithm key);
   public abstract bool VerifySignature(byte[  ] rgbHash, byte[  ] rgbSignature);
   public virtual bool VerifySignature(HashAlgorithm hash, byte[  ] rgbSignature);
}

Implementations of this abstract class verify digital signatures created by the AsymmetricSignatureFormatter class.

The VerifySignature( ) method uses an asymmetric public key to verify a digital signature, expressed as a System.Byte array. The public key value is set by the SetKey( ) method, which accepts an instance of the AsymmetricAlgorithm class configured with the key parameters. The SetHashAlgorithm( ) method sets the name of the hash algorithm used to create the digital signature; this value is used in the verification process.

The .NET Framework class library includes the DSASignatureDeformatter and RSAPKCS1SignatureDeformatter classes, which verify digital signatures created with the DSASignatureFormatter and RSAPKCS1SignatureFormatter classes.

Subclasses

DSASignatureDeformatter, RSAPKCS1SignatureDeformatter

Returned By

SignatureDescription.CreateDeformatter( )

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

.NET Framework Security

.NET Framework Security

Brian A. LaMacchia, Sebastian Lange, Matthew Lyons, Rudi Martin, Kevin T. Price
.NET Security and Cryptography

.NET Security and Cryptography

Peter Thorsteinson, G. Gnana Arun Ganesh
ASP.NET Core Security

ASP.NET Core Security

Christian Wenz

Publisher Resources

ISBN: 0596004427Supplemental ContentErrata Page