internal string GetHashNameFromOID (string oid)
{
switch (oid) {
// MD2 with RSA encryption
case "1.2.840.113549.1.1.2":
// maybe someone installed MD2 ?
return "MD2";
// MD5 with RSA encryption
case "1.2.840.113549.1.1.4":
return "MD5";
// SHA-1 with RSA Encryption
case "1.2.840.113549.1.1.5":
case "1.3.14.3.2.29":
return "SHA1";
default:
return null;
}
}