|
suricata
|

Go to the source code of this file.
Macros | |
| #define | SHA256_MT "suricata:hashlib:sha256" |
| #define | SHA1_MT "suricata:hashlib:sha1" |
| #define | MD5_MT "suricata:hashlib:md5" |
Functions | |
| int | SCLuaLoadHashlib (lua_State *L) |
Hashing library for Lua.
Usage:
local hashing = require("suricata.hashing")
– One shot hash hash = hashing.sha256_digest("www.suricata.io")
– One shot hash to hex hash = hashing.sha256_hexdigest("www.suricata.io")
– Incremental hashing hasher = hashing.sha256() hasher:update("www.") hasher:update("suricata.io") hash = hasher:finalize()
Support hashes: sha256, sha1, md5
Definition in file util-lua-hashlib.c.
| #define MD5_MT "suricata:hashlib:md5" |
Definition at line 50 of file util-lua-hashlib.c.
| #define SHA1_MT "suricata:hashlib:sha1" |
Definition at line 49 of file util-lua-hashlib.c.
| #define SHA256_MT "suricata:hashlib:sha256" |
Definition at line 48 of file util-lua-hashlib.c.
| int SCLuaLoadHashlib | ( | lua_State * | L | ) |
Definition at line 409 of file util-lua-hashlib.c.
References SHA256_MT.