DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Classes | Static Public Member Functions | Properties | List of all members
Deveel.Data.Security.HashFunctions Class Reference

Classes

class  HashFunction
 
class  KeyedHashFunction
 

Static Public Member Functions

static IHashFunction GetFunction (string functionName)
 

Properties

static IHashFunction Sha1 [get]
 
static IHashFunction Sha256 [get]
 
static IHashFunction Sha384 [get]
 
static IHashFunction Sha512 [get]
 
static IHashFunction Md5 [get]
 
static IKeyedHashFunction HmacSha256 [get]
 
static IKeyedHashFunction HmacSha384 [get]
 
static IKeyedHashFunction HmacSha512 [get]
 
static IKeyedHashFunction HmacSha1 [get]
 
static IKeyedHashFunction HmacMd5 [get]
 

Detailed Description

Definition at line 21 of file HashFunctions.cs.

Member Function Documentation

static IHashFunction Deveel.Data.Security.HashFunctions.GetFunction ( string  functionName)
inlinestatic

Definition at line 62 of file HashFunctions.cs.

62  {
63  if (String.Equals(functionName, "SHA256", StringComparison.OrdinalIgnoreCase) ||
64  String.Equals(functionName, "SHA-256", StringComparison.OrdinalIgnoreCase))
65  return Sha256;
66 
67  if (String.Equals(functionName, "SHA384", StringComparison.OrdinalIgnoreCase) ||
68  String.Equals(functionName, "SHA-384", StringComparison.OrdinalIgnoreCase))
69  return Sha384;
70 
71  if (String.Equals(functionName, "SHA512", StringComparison.OrdinalIgnoreCase) ||
72  String.Equals(functionName, "SHA-512", StringComparison.OrdinalIgnoreCase))
73  return Sha512;
74 
75  if (String.Equals(functionName, "MD5", StringComparison.OrdinalIgnoreCase))
76  return Md5;
77 
78  if (String.Equals(functionName, "SHA1", StringComparison.OrdinalIgnoreCase) ||
79  String.Equals(functionName, "SHA-1", StringComparison.OrdinalIgnoreCase))
80  return Sha1;
81 
82  // HMAC
83  if (String.Equals(functionName, "HMAC-SHA256", StringComparison.OrdinalIgnoreCase) ||
84  String.Equals(functionName, "HMACSHA256", StringComparison.OrdinalIgnoreCase) ||
85  String.Equals(functionName, "HMAC-SHA-256", StringComparison.OrdinalIgnoreCase))
86  return HmacSha256;
87 
88  if (String.Equals(functionName, "HMAC-SHA384", StringComparison.OrdinalIgnoreCase) ||
89  String.Equals(functionName, "HMACSHA384", StringComparison.OrdinalIgnoreCase) ||
90  String.Equals(functionName, "HMAC-SHA-384", StringComparison.OrdinalIgnoreCase))
91  return HmacSha384;
92 
93  if (String.Equals(functionName, "HMAC-SHA512", StringComparison.OrdinalIgnoreCase) ||
94  String.Equals(functionName, "HMACSHA512", StringComparison.OrdinalIgnoreCase) ||
95  String.Equals(functionName, "HMAC-SHA-512", StringComparison.OrdinalIgnoreCase))
96  return HmacSha512;
97 
98  if (String.Equals(functionName, "HMAC-SHA1", StringComparison.OrdinalIgnoreCase) ||
99  String.Equals(functionName, "HMACSHA1", StringComparison.OrdinalIgnoreCase) ||
100  String.Equals(functionName, "HMAC-SHA-1", StringComparison.OrdinalIgnoreCase))
101  return HmacSha1;
102 
103  if (String.Equals(functionName, "HMAC-MD5", StringComparison.OrdinalIgnoreCase) ||
104  String.Equals(functionName, "HMACMD5", StringComparison.OrdinalIgnoreCase))
105  return HmacMd5;
106 
107  return null;
108  }
A long string in the system.
static IKeyedHashFunction HmacMd5
static IKeyedHashFunction HmacSha512
static IKeyedHashFunction HmacSha256
static IKeyedHashFunction HmacSha384
static IKeyedHashFunction HmacSha1

Property Documentation

IKeyedHashFunction Deveel.Data.Security.HashFunctions.HmacMd5
staticget

Definition at line 58 of file HashFunctions.cs.

IKeyedHashFunction Deveel.Data.Security.HashFunctions.HmacSha1
staticget

Definition at line 54 of file HashFunctions.cs.

IKeyedHashFunction Deveel.Data.Security.HashFunctions.HmacSha256
staticget

Definition at line 42 of file HashFunctions.cs.

IKeyedHashFunction Deveel.Data.Security.HashFunctions.HmacSha384
staticget

Definition at line 46 of file HashFunctions.cs.

IKeyedHashFunction Deveel.Data.Security.HashFunctions.HmacSha512
staticget

Definition at line 50 of file HashFunctions.cs.

IHashFunction Deveel.Data.Security.HashFunctions.Md5
staticget

Definition at line 38 of file HashFunctions.cs.

IHashFunction Deveel.Data.Security.HashFunctions.Sha1
staticget

Definition at line 22 of file HashFunctions.cs.

IHashFunction Deveel.Data.Security.HashFunctions.Sha256
staticget

Definition at line 26 of file HashFunctions.cs.

IHashFunction Deveel.Data.Security.HashFunctions.Sha384
staticget

Definition at line 30 of file HashFunctions.cs.

IHashFunction Deveel.Data.Security.HashFunctions.Sha512
staticget

Definition at line 34 of file HashFunctions.cs.


The documentation for this class was generated from the following file: