add sha256 implementation
Eliminate multiline macros, embrace C99
Fix byteorder problems
added doxygen doc to sha256