webmcp

diff libraries/moonhash/moonhash.autodoc.lua @ 499:b36e366bba2b

Added SHA-3 hashing functions (using compact Keccak code)
author jbe
date Sun Aug 13 03:22:48 2017 +0200 (2017-08-13)
parents
children 83b3882dc31b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libraries/moonhash/moonhash.autodoc.lua	Sun Aug 13 03:22:48 2017 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +--[[--
     1.5 +hash =              -- SHA3-224 digest (in hex notation) of input string
     1.6 +moonhash.sha3_224(
     1.7 +  data              -- input string
     1.8 +)
     1.9 +
    1.10 +Calculates the SHA3-224 checksum with a security of 112 bits for collision attacks and 224 bits for preimage and second preimage attacks.
    1.11 +
    1.12 +--]]--
    1.13 +-- Implemented in moonhash.c and moonhash_sha3.c
    1.14 +--//--
    1.15 +
    1.16 +
    1.17 +--[[--
    1.18 +hash =              -- SHA3-256 digest (in hex notation) of input string
    1.19 +moonhash.sha3_256(
    1.20 +  data              -- input string
    1.21 +)
    1.22 +
    1.23 +Calculates the SHA3-256 checksum with a security of 128 bits for collision attacks and 256 bits for preimage and second preimage attacks.
    1.24 +
    1.25 +--]]--
    1.26 +-- Implemented in moonhash.c and moonhash_sha3.c
    1.27 +--//--
    1.28 +
    1.29 +
    1.30 +--[[--
    1.31 +hash =              -- SHA3-384 digest (in hex notation) of input string
    1.32 +moonhash.sha3_384(
    1.33 +  data              -- input string
    1.34 +)
    1.35 +
    1.36 +Calculates the SHA3-384 checksum with a security of 192 bits for collision attacks and 384 bits for preimage and second preimage attacks.
    1.37 +
    1.38 +--]]--
    1.39 +-- Implemented in moonhash.c and moonhash_sha3.c
    1.40 +--//--
    1.41 +
    1.42 +
    1.43 +--[[--
    1.44 +hash =              -- SHA3-512 digest (in hex notation) of input string
    1.45 +moonhash.sha3_512(
    1.46 +  data              -- input string
    1.47 +)
    1.48 +
    1.49 +Calculates the SHA3-512 checksum with a security of 512 bits for collision attacks and 256 bits for preimage and second preimage attacks.
    1.50 +
    1.51 +--]]--
    1.52 +-- Implemented in moonhash.c and moonhash_sha3.c
    1.53 +--//--
    1.54 +
    1.55 +
    1.56 +--[[--
    1.57 +hash =              -- 128 bits of SHAKE128 digest (in hex notation) of input string
    1.58 +moonhash.shake128_128(
    1.59 +  data              -- input string
    1.60 +)
    1.61 +
    1.62 +Calculates the first 128 bits of the SHAKE128 digest (FIPS 202) with a security of 64 bits for collision attacks and 128 bits for preimage and second preimage attacks.
    1.63 +
    1.64 +--]]--
    1.65 +-- Implemented in moonhash.c and moonhash_sha3.c
    1.66 +--//--
    1.67 +
    1.68 +

Impressum / About Us