util/sha1.lua

changeset 490
6b2f31da9610
parent 486
6416ea3fff86
equal deleted inserted replaced
489:39ed19f12dca 490:6b2f31da9610
11 local strlen = string.len 11 local strlen = string.len
12 local strchar = string.char 12 local strchar = string.char
13 local strbyte = string.byte 13 local strbyte = string.byte
14 local strsub = string.sub 14 local strsub = string.sub
15 local floor = math.floor 15 local floor = math.floor
16 local bit = bit32 or require "util.bit" 16 local bit = bit32 or require "prosody.util.bit"
17 local bnot = bit.bnot 17 local bnot = bit.bnot
18 local band = bit.band 18 local band = bit.band
19 local bor = bit.bor 19 local bor = bit.bor
20 local bxor = bit.bxor 20 local bxor = bit.bxor
21 local shl = bit.lshift 21 local shl = bit.lshift

mercurial