Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.hashes: Return OpenSSL error messages on failure | Kim Alvefur | 2022-06-24 | 1 | -3/+4 |
| | | | | With luck, might contain more details than just "failed" | ||||
* | util.hashes: Add SHA3 bindings | Kim Alvefur | 2020-09-10 | 1 | -0/+19 |
| | |||||
* | util.hashes: Bind BLAKE2 algoritms supported by OpenSSL | Kim Alvefur | 2020-09-10 | 1 | -0/+21 |
| | |||||
* | util.hashes: Refactor PBKDF2 to deduplicate code | Kim Alvefur | 2020-09-10 | 1 | -17/+8 |
| | |||||
* | util.hashes: Expose sha224 and sha384 HMAC functions | Kim Alvefur | 2020-11-29 | 1 | -0/+10 |
| | | | | For completeness and consistency with set of plain hash functions | ||||
* | util.hashes: Refactor HMAC bindings (fixes #1589) | Kim Alvefur | 2020-11-29 | 1 | -22/+61 |
| | | | | | | | HMAC() is deprecated As with the regular hash functions, macros like this make it awkward to apply static analysis and code formatting. | ||||
* | util.hashes: Refactor hash functions to use OpenSSL EVP methods (fix #1698) | Kim Alvefur | 2020-09-10 | 1 | -20/+63 |
| | | | | | | | MD5() is deprecated, but EVP_md5() is not. Functions in macros like this make it awkward to apply static analysis and code formatting. | ||||
* | util.hashes: Expose OpenSSL version | Kim Alvefur | 2021-05-12 | 1 | -0/+4 |
| | |||||
* | Merge 0.11->trunk | Matthew Wild | 2021-05-13 | 1 | -0/+14 |
|\ | |||||
| * | util.hashes: Add constant-time string comparison (binding to CRYPTO_memcmp) | Matthew Wild | 2021-05-10 | 1 | -0/+14 |
| | | |||||
* | | util.hashes: Fix output length of PBKDF2-HMAC-SHA256 | Kim Alvefur | 2020-04-22 | 1 | -1/+1 |
| | | | | | | | | Somehow it got SHA1's 20 byte output instead of the proper 32 = 256/8 | ||||
* | | util.*.c: Add static qualifiers everywhere | Emmanuel Gil Peyrot | 2019-12-01 | 1 | -2/+2 |
| | | |||||
* | | Backed out changeset 61bc5c52c941 | Kim Alvefur | 2019-04-21 | 1 | -12/+9 |
| | | | | | | | | luaL_buffinitsize is only available in Lua 5.2+ | ||||
* | | util.hashes: Allow specifying output key length | Kim Alvefur | 2019-04-20 | 1 | -9/+12 |
| | | | | | | | | This is not needed for SCRAM but PBKDF2 takes this argument. | ||||
* | | util.hashes: Add PBKDF2-HMAC-SHA256 | Kim Alvefur | 2019-01-13 | 1 | -0/+18 |
| | | |||||
* | | util.hashes: Rename PBKDF2 function | Kim Alvefur | 2019-01-13 | 1 | -2/+3 |
| | | | | | | | | It's not SCRAM-specific | ||||
* | | util.hashes: Remove now unused hmac() function | Kim Alvefur | 2019-04-19 | 1 | -38/+0 |
| | | |||||
* | | util.hashes: Use PBKDF2 from libcrypto | Kim Alvefur | 2019-01-13 | 1 | -44/+9 |
| | | |||||
* | | Merge 0.11->trunk | Kim Alvefur | 2019-04-19 | 1 | -17/+11 |
|\| | |||||
| * | util.hashes: Use HMAC function provided by OpenSSL (fixes #1345) | Kim Alvefur | 2019-04-19 | 1 | -17/+11 |
| | | |||||
* | | util.hashes: Remove redundant semicolon | Kim Alvefur | 2019-04-19 | 1 | -1/+1 |
|/ | |||||
* | util-src/*.c: Attach pointer * to name instead of type | Kim Alvefur | 2017-02-12 | 1 | -19/+19 |
| | |||||
* | util-src/*.c: Squeeze repeated blank lines | Kim Alvefur | 2017-01-23 | 1 | -1/+0 |
| | |||||
* | util-src: Make C modules assert that the Lua runtime matches what it was ↵ | Kim Alvefur | 2017-01-08 | 1 | -0/+3 |
| | | | | compiled for | ||||
* | util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵ | Kim Alvefur | 2015-04-26 | 1 | -3/+3 |
| | | | | support 5.1 | ||||
* | util-src/*.c: Per convention call luaL_error() as argument to return | Florian Zeitz | 2015-04-03 | 1 | -1/+1 |
| | |||||
* | util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵ | Kim Alvefur | 2015-04-03 | 1 | -26/+31 |
| | | | | --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux | ||||
* | util-src/*.c: Add macro for compiling with Lua 5.2 | Kim Alvefur | 2014-09-17 | 1 | -0/+4 |
| | |||||
* | util-src/*.c: Use the more concise lua_setfield | Kim Alvefur | 2014-09-17 | 1 | -2/+1 |
| | |||||
* | util-src/*.c: Don't create globals when loaded | Kim Alvefur | 2014-09-16 | 1 | -1/+2 |
| | |||||
* | util.hashes: Silence compiler warning about pointer signedness0.9.0 | Kim Alvefur | 2013-08-09 | 1 | -1/+1 |
| | |||||
* | util.hashes: Correct argument order | Kim Alvefur | 2013-08-06 | 1 | -1/+1 |
| | |||||
* | util.hashes: inttypes.h not available with MS Windows SDK, use MS specific ↵ | Waqas Hussain | 2013-05-13 | 1 | -0/+5 |
| | | | | __int32 instead. | ||||
* | util.hashes, util.sasl.scram: Implement SCRAM-SHA1's Hi in C | Florian Zeitz | 2013-04-28 | 1 | -0/+49 |
| | |||||
* | util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashes | Florian Zeitz | 2013-04-27 | 1 | -14/+97 |
| | |||||
* | util.hashes: Add sha224, sha384, sha512 | Kim Alvefur | 2012-05-10 | 1 | -0/+6 |
| | |||||
* | util.hashes: Use defined hash function output lengths. | Kim Alvefur | 2012-05-09 | 1 | -3/+3 |
| | |||||
* | Update copyright headers for 2010 | Matthew Wild | 2010-03-22 | 1 | -3/+3 |
| | |||||
* | 0.3->0.4 | Matthew Wild | 2009-03-20 | 1 | -1/+1 |
| | |||||
* | Licensing/version updates for some files (forgot to commit, doh...) | Matthew Wild | 2009-02-02 | 1 | -72/+62 |
| | |||||
* | and the C files too | Matthew Wild | 2008-12-03 | 1 | -0/+20 |
| | |||||
* | Minor changes to C files (to prevent compiler warnings) | Waqas Hussain | 2008-11-27 | 1 | -1/+1 |
| | |||||
* | Fix for hashes.c and encodings.c to rename luaopen for util_* | Matthew Wild | 2008-11-26 | 1 | -1/+1 |
| | |||||
* | Removed commented code | Waqas Hussain | 2008-11-26 | 1 | -148/+2 |
| | |||||
* | Added util-src/hashes.c - support for sha1, sha256 and md5 hashes | Waqas Hussain | 2008-11-26 | 1 | -0/+204 |