Add custom SHA1 function rather than using in kernel

Signed-off-by: Prashant Shah <pshah.mumbai@gmail.com>