Fixed gcc warnings for the sha2 driver.