public class SHA256Managed : SHA256 { // Public Constructors public SHA256Managed( ); // Public Instance Methods public override void Initialize( ); // overrides HashAlgorithm// Protected Instance Methods protected override void HashCore(byte[ ] rgb, int ibStart, int cbSize); // overrides HashAlgorithm protected override byte[ ] HashFinal( ); // overrides HashAlgorithm }
This subclass of SHA256 is the default implementation of the SHA-256 algorithm. SHA256Managed is implemented in managed code, rather than acting as a wrapper around the Windows Crypto API.