2 // RIPEMD160.cs: Defines a base class from which all RIPEMD-160 implementations inherit
5 // Pieter Philippaerts (Pieter@mentalis.org)
7 // (C) 2003 The Mentalis.org Team (http://www.mentalis.org/)
14 namespace System.Security.Cryptography {
16 /// Represents the abstract class from which all implementations of the <see cref="RIPEMD160"/> hash algorithm inherit.
18 public abstract class RIPEMD160 : HashAlgorithm {
20 /// Initializes a new instance of <see cref="RIPEMD160"/>.
22 protected RIPEMD160 ()
24 this.HashSizeValue = 160;
28 /// Creates an instance of the default implementation of the <see cref="RIPEMD160"/> hash algorithm.
30 /// <returns>A new instance of the RIPEMD160 hash algorithm.</returns>
31 public static new RIPEMD160 Create ()
33 return Create ("System.Security.Cryptography.RIPEMD160");
37 /// Creates an instance of the specified implementation of the <see cref="RIPEMD160"/> hash algorithm.
39 /// <param name="hashName">The name of the specific implementation of RIPEMD160 to use.</param>
40 /// <returns>A new instance of the specified implementation of RIPEMD160.</returns>
41 public static new RIPEMD160 Create (string hashName)
43 return (RIPEMD160)CryptoConfig.CreateFromName (hashName);