SHA: Fix some implementation-defined behaviour (#343)
* SHA: Fix negative base shift UB
* SHA: Avoid signed integer overflow
We do cast from uint32_t to int32_t but that should be OK everywhere.
* SHA: Always use portable arithmetic right shift
pull/350/head
Gleb Mazovetskiy7 years agocommitted byAnders Jenbo