crypto: introduce new module for computing hash digests