Taken baseXX operations out from CipherSet.
Created Hash class with hash operations and rewritten entire code to use
it instead hash_t.