bugfix in hash_test with SHA-256
rewriting SHA-256 assembly to use macros; performance improvements