namespace com.hitrust.Security.Cryptography
|
|
{
|
|
using System;
|
|
using System.Security.Cryptography;
|
|
|
|
public abstract class MD2 : HashAlgorithm
|
|
{
|
|
protected MD2()
|
|
{
|
|
base.HashSizeValue = 0x80;
|
|
}
|
|
|
|
public new static MD2 Create()
|
|
{
|
|
return Create("MD2");
|
|
}
|
|
|
|
public new static MD2 Create(string hashName)
|
|
{
|
|
try {
|
|
if ((hashName.ToUpper() == "MD2") || (hashName.ToLower() == "org.mentalis.security.cryptography.md2cryptoserviceprovider")) {
|
|
return new MD2CryptoServiceProvider();
|
|
}
|
|
} catch {}
|
|
return null;
|
|
}
|
|
}
|
|
}
|