safety fixes: incorrect type requirement in buffer_to_block signature, and using appropriate safe size type for read size parameter
adding credit line
using proper C++ types, and getting rid of non-standard "uint"
updating rest of the types to c++ fixed size
Merge pull request #1 from slowriot/master

Safety improvements