Comparison

util/sha1.lua @ 500:674daff6c73b

use util.bitcompat from Prosody for bitwise compat layer
author Kim Alvefur <zash@zash.se>
date Fri, 23 Jun 2023 12:26:43 +0200
parent 490:6b2f31da9610
comparison
equal deleted inserted replaced
499:57417c37d018 500:674daff6c73b
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 "prosody.util.bit" 16 local bit = require "prosody.util.bitcompat"
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