SHA-1 secure hash computation, and HMAC-SHA1 signature computation in Lua (5.1)