You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

28 lines
578 B

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;
}
}
}