//
// RIPEMD160.cs: Defines a base class from which all RIPEMD-160 implementations inherit
//
// Author:
// Pieter Philippaerts (Pieter@mentalis.org)
//
// (C) 2003 The Mentalis.org Team (http://www.mentalis.org/)
//
#if NET_1_2
using System;
namespace System.Security.Cryptography {
///
/// Represents the abstract class from which all implementations of the hash algorithm inherit.
///
public abstract class RIPEMD160 : HashAlgorithm {
///
/// Initializes a new instance of .
///
protected RIPEMD160 ()
{
this.HashSizeValue = 160;
}
///
/// Creates an instance of the default implementation of the hash algorithm.
///
/// A new instance of the RIPEMD160 hash algorithm.
public static new RIPEMD160 Create ()
{
return Create ("System.Security.Cryptography.RIPEMD160");
}
///
/// Creates an instance of the specified implementation of the hash algorithm.
///
/// The name of the specific implementation of RIPEMD160 to use.
/// A new instance of the specified implementation of RIPEMD160.
public static new RIPEMD160 Create (string hashName)
{
return (RIPEMD160)CryptoConfig.CreateFromName (hashName);
}
}
}
#endif