Comparison

util/sha1.lua @ 490:6b2f31da9610

Update for new Prosody module namespace
author Kim Alvefur <zash@zash.se>
date Sat, 20 May 2023 20:48:03 +0200
parent 486:6416ea3fff86
child 500:674daff6c73b
comparison
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