PBS-39 feature: Add binlog encryption config and keyring support (part 5) - #167
Merged
percona-ysorokin merged 1 commit intoAug 5, 2026
Merged
Conversation
…t 5) https://perconadev.atlassian.net/browse/PBS-39 Added new static library 'opensslpp' which is intended to include c++ wrappers for OpenSSL cryptographic primitives. The initial version includes: * 'opensslpp::crypto_rng' class that provides random cryptographically-strong byte sequences generation (based on 'RAND_butes()' API call). * 'opensslpp::cipher_context' class that provides a convenient way of encrypting / decrypting data with various algorithms (e.g. 'AES'), key lengths (e.g 128, / 192 / 256 bit), and in various modes (e.g. 'ECB', 'CBC', 'CTR', 'GCM'). It is based on 'EVP_CIPHER_CTX'. * 'opensslpp::core_error' exception class that automatically extracts error message from the OpenSSL subsystem (via the 'ERR_get_error()' call) Currently we support only the following encryption modes: * 'ECB' - does not need IV, does not generate / verify tag, operates on blocks only (16 bytes) * 'CBC' - needs IV, does not generate / verify tag, operates on blocks only (16 bytes) * 'CTR' needs IV, does not generate / verify tag, operates on byte sequences of any size. * 'GCM' needs IV, generates / verifies tag, operates on byte sequences of any size. For both 'ECB' and 'CBC' modes we deliberately disable padding. Added tho new unit tests: * 'crypto_rnd_test.cpp' (BOOST_TEST_MODULE CryptoRndTests) * 'cipher_context_test.cpp' (BOOST_TEST_MODULE CipherContextTests)
percona-ysorokin
force-pushed
the
encryption_opensslpp
branch
from
August 5, 2026 00:57
73ce5df to
743a3a2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://perconadev.atlassian.net/browse/PBS-39
Added new static library 'opensslpp' which is intended to include c++ wrappers for OpenSSL cryptographic primitives.
The initial version includes:
Currently we support only the following encryption modes:
For both 'ECB' and 'CBC' modes we deliberately disable padding.
Added tho new unit tests: