compat with LuaCrypto support hmac/digest functions