adding support for a more configurable sha512 hasher, digest32 template, using hasher512.
use cstdint intead of boost/cstdint.hpp