diff options
Diffstat (limited to 'meta/3rd/OpenResty/library/resty.md5.lua')
-rw-r--r-- | meta/3rd/OpenResty/library/resty.md5.lua | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/meta/3rd/OpenResty/library/resty.md5.lua b/meta/3rd/OpenResty/library/resty.md5.lua index bb8204c1..de82b49e 100644 --- a/meta/3rd/OpenResty/library/resty.md5.lua +++ b/meta/3rd/OpenResty/library/resty.md5.lua @@ -1,8 +1,16 @@ ---@meta -resty_md5={} -function resty_md5.final(self) end -function resty_md5.new(self) end -function resty_md5.reset(self) end -resty_md5._VERSION="0.11" -function resty_md5.update(self, s) end -return resty_md5
\ No newline at end of file + +---@class resty.md5 : resty.string.checksum +local md5={} + +--- Create a new md5 checksum object. +---@return resty.md5 +function md5:new() end + +--- Add a string to the md5 checksum data +---@param s string +---@param len? number Optional length (defaults to the length of `s`) +---@return boolean ok +function md5:update(s, len) end + +return md5
\ No newline at end of file |