bcrypt/sha2.[ch]: sync. with upstream.

sha2.c: r1.9 - r1.13
sha2.h: r1.5

(cherry picked from commit 4d73936be750bc6971ae8569fba7800dbaaa6aa2)