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

Public Member Functions

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

Properties

KeyedHashAlgorithm Hash [get, set]
 
int HashSize [get]
 
byte[] Key [get, set]
 
- Properties inherited from Deveel.Data.Security.IKeyedHashFunction
byte[] Key [get, set]
 Gets or sets the private key to use for computing the hash. More...
 
- Properties inherited from Deveel.Data.Security.IHashFunction
int HashSize [get]
 Gets the size of the hash to generate. More...
 

Detailed Description

Definition at line 139 of file HashFunctions.cs.

Constructor & Destructor Documentation

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

Definition at line 140 of file HashFunctions.cs.

140  {
141  Hash = KeyedHashAlgorithm.Create(hashName);
142 
143  if (Hash == null)
144  throw new ArgumentException(String.Format("The hash function {0} is not supported", hashName));
145  }
A long string in the system.

Member Function Documentation

byte [] Deveel.Data.Security.HashFunctions.KeyedHashFunction.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 157 of file HashFunctions.cs.

157  {
158  return Hash.ComputeHash(data);
159  }
void Deveel.Data.Security.HashFunctions.KeyedHashFunction.Dispose ( )
inline

Definition at line 149 of file HashFunctions.cs.

149  {
150  Hash.Clear();
151  }

Property Documentation

KeyedHashAlgorithm Deveel.Data.Security.HashFunctions.KeyedHashFunction.Hash
getsetprivate

Definition at line 147 of file HashFunctions.cs.

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

Definition at line 153 of file HashFunctions.cs.

byte [] Deveel.Data.Security.HashFunctions.KeyedHashFunction.Key
getset

Definition at line 161 of file HashFunctions.cs.


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