// // System.Security.Cryptography SHA256 Class implementation // // Authors: // Matthew S. Ford (Matthew.S.Ford@Rose-Hulman.Edu) // Sebastien Pouliot (spouliot@motus.com) // // Copyright 2001 by Matthew S. Ford. // Portions (C) 2002 Motus Technologies Inc. (http://www.motus.com) // using System.Security.Cryptography; namespace System.Security.Cryptography { /// /// Common base class for all derived SHA256 implementations. /// public abstract class SHA256 : HashAlgorithm { /// /// Called from constructor of derived class. /// public SHA256 () { HashSizeValue = 256; } /// /// Creates the default derived class. /// public static new SHA256 Create () { return Create ("System.Security.Cryptography.SHA256"); } /// /// Creates a new derived class. /// /// Specifies which derived class to create public static new SHA256 Create (string hashName) { return (SHA256) CryptoConfig.CreateFromName (hashName); } } }