diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-02-16 08:40:56 +0100 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-02-16 17:58:17 +0100 |
commit | b5e1fc7d8fcf9336db0dfb351403aa06dcb226a0 (patch) | |
tree | c5af5984d51a1db1d6ff59bb2360eb4cec4f0b29 /lib/function_traits.h | |
parent | 0a43c023b94e12b3130572f2dd0d6ac8bb4ed110 (diff) | |
download | libquotient-b5e1fc7d8fcf9336db0dfb351403aa06dcb226a0.tar.gz libquotient-b5e1fc7d8fcf9336db0dfb351403aa06dcb226a0.zip |
More cleanup, especially in EncryptedFile
For EncryptedFile:
- JSON converter bodies moved away to .cpp;
- instead of C-style casts, reinterpret_cast is used to convert from
(const) char* to (const) unsigned char*;
- the size for the target plain text takes into account the case where
the cipher block size can be larger than 1 (after reading
https://www.openssl.org/docs/man1.1.1/man3/EVP_DecryptUpdate.html).
- file decryption is wrapped in #ifdef Quotient_E2EE_ENABLED, to avoid
OpenSSL linking errors when compiling without E2EE.
Diffstat (limited to 'lib/function_traits.h')
0 files changed, 0 insertions, 0 deletions