C library to compute SHA1 of file in single function call