]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Add tooling to encrypt strings in Lua
authorIvan Stakhov <50211739+LeftTry@users.noreply.github.com>
Thu, 5 Sep 2024 10:48:22 +0000 (13:48 +0300)
committerGitHub <noreply@github.com>
Thu, 5 Sep 2024 10:48:22 +0000 (11:48 +0100)
commitbb6604f2a6439613fa6546e5e8ec8b61006ec208
tree6fcbe4a0f104fe14296d1acc88561ac43e95bc64
parent40a6ddd69be80e6a4ad8a29053bbfa18d24b3bd8
[Feature] Add tooling to encrypt strings in Lua

* [Fix] Provide support for OpenSSL 3.0

* [Feature] Provide function to encode header with configured public key

* [Feature] Provide function to decode header with configured public key

* [Test] Add tests for maybe encode/decode header

* [Minor] Fix tests for encode/decode header

* [Minor] Small clean up

* [Minor] Small clean up

* [Minor] Small fix for OpenSSL 3.0 support

* [Minor] Provide logging

* [Minor] Small fix

* [Fix] Fix typo error

* [Fix] Another typo

* [Minor] Little clean up

* [Minor] Little fix

* [Minor] Small fix

* [Minor] Small fix

* [Minor] Rewrite the arguments of secretbox:encrypt/decrypt functions to a more understandable format

* [Fix] Fix problem with nonce was not provided

* [Test] Add test for nonce

* [Minor] Little clean up

* [Minor] Little clean up

* [Test] Test

* [Test] Test

* [Test] Test

* [Minor] Little fix

* [Minor] Small fix

* [Minor] Small fix

* [Test] Small fix

* [Test] Test

* [Test] Test

* [Test] Test

* [Test] Test

* [Minor] Small fix for fips provider

* [Minor] Change provider apply logic

* [Test] Little fix for provider

* [Minor] Provide OpenSSL <3.0 support

* [Test] Possible provider fix

* [Test] Possible provider fix

* [Test] Little fix

* [Minor] Fix provider issue

* [Minor] Small clean up

* [Minor] Change logging errors

* Update lualib/lua_util.lua

---------

Co-authored-by: Vsevolod Stakhov <vsevolod@rspamd.com>
lualib/lua_util.lua
src/lua/lua_cryptobox.c
test/lua/unit/lua_util.maybe_encrypt_decrypt_header.lua [new file with mode: 0644]