aboutsummaryrefslogtreecommitdiff
path: root/lib/util.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-02-16 08:40:56 +0100
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-02-16 17:58:17 +0100
commitb5e1fc7d8fcf9336db0dfb351403aa06dcb226a0 (patch)
treec5af5984d51a1db1d6ff59bb2360eb4cec4f0b29 /lib/util.cpp
parent0a43c023b94e12b3130572f2dd0d6ac8bb4ed110 (diff)
downloadlibquotient-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/util.cpp')
0 files changed, 0 insertions, 0 deletions