Trimmed back to just SHA-1 functions (to fit on Uno R2)