Added hash funcitons. Removed dependency of openssl.