Fixes #679. Note: on x86_64, SHA-512 is considerably faster than SHA-256 (198 MB/s versus 131 MB/s).
adding primop function calculating hash of a string Signed-off-by: Marc Weber <marco-oweber@gmx.de>