lib: sha1: Add support for hardware specific sha1_process