public class SHA512Managed : SHA512 { // Public Constructors public SHA512Managed( ); // 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 SHA512 is the default implementation of the SHA-512 algorithm. SHA512Managed is implemented in managed code, rather than acting as a wrapper around the Windows Crypto API.