Software /
code /
prosody
Comparison
teal-src/util/hashes.d.tl @ 11459:86904555bffc
teal: Use new integer support in Teal 0.13.0
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Mar 2021 23:16:41 +0100 |
parent | 11432:113f3912c7cb |
child | 11576:fbd1ebd86369 |
comparison
equal
deleted
inserted
replaced
11458:0e00fa518688 | 11459:86904555bffc |
---|---|
1 local type hash = function (msg : string, hex : boolean) : string | 1 local type hash = function (msg : string, hex : boolean) : string |
2 local type hmac = function (key : string, msg : string, hex : boolean) : string | 2 local type hmac = function (key : string, msg : string, hex : boolean) : string |
3 local type kdf = function (pass : string, salt : string, i : number) : string | 3 local type kdf = function (pass : string, salt : string, i : integer) : string |
4 | 4 |
5 local record lib | 5 local record lib |
6 sha1 : hash | 6 sha1 : hash |
7 sha256 : hash | 7 sha256 : hash |
8 sha224 : hash | 8 sha224 : hash |