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

Public Member Functions

 HashFunction (string hashName)
 
void Dispose ()
 
byte[] Compute (byte[] data)
 Computes the hash from the given input. More...
 

Properties

HashAlgorithm Hash [get, set]
 
int HashSize [get]
 
- Properties inherited from Deveel.Data.Security.IHashFunction
int HashSize [get]
 Gets the size of the hash to generate. More...
 

Detailed Description

Definition at line 112 of file HashFunctions.cs.

Constructor & Destructor Documentation

Deveel.Data.Security.HashFunctions.HashFunction.HashFunction ( string  hashName)
inline

Definition at line 113 of file HashFunctions.cs.

113  {
114  Hash = HashAlgorithm.Create(hashName);
115 
116  if (Hash == null)
117  throw new ArgumentException(String.Format("Hash function {0} is not supported", hashName));
118  }
A long string in the system.

Member Function Documentation

byte [] Deveel.Data.Security.HashFunctions.HashFunction.Compute ( byte[]  data)
inline

Computes the hash from the given input.

Parameters
dataThe binary representation of the data to hash.
Returns
Returns a computed hash from the input data.

Implements Deveel.Data.Security.IHashFunction.

Definition at line 130 of file HashFunctions.cs.

130  {
131  return Hash.ComputeHash(data);
132  }
void Deveel.Data.Security.HashFunctions.HashFunction.Dispose ( )
inline

Definition at line 122 of file HashFunctions.cs.

122  {
123  Hash.Clear();
124  }

Property Documentation

HashAlgorithm Deveel.Data.Security.HashFunctions.HashFunction.Hash
getsetprivate

Definition at line 120 of file HashFunctions.cs.

int Deveel.Data.Security.HashFunctions.HashFunction.HashSize
get

Definition at line 126 of file HashFunctions.cs.


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