diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-02-19 21:22:20 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-02-19 21:38:28 +0100 |
commit | 920409e9149f99e894eb2e3bcd316e51a65e1bde (patch) | |
tree | 49e29313a3abf2174bad4e4ba082fa447d2d2599 /src/encryption | |
parent | Automatically fetch keys for undecrypted messages after verification (diff) | |
download | nheko-920409e9149f99e894eb2e3bcd316e51a65e1bde.tar.xz |
Reduce code bloat a bit
Especially the emoji array shrinks a lot with this, but adds a few extra relocations on startup. But it removes a lot of exception handling code at runtime, which is nice and possibly this is still faster.
Diffstat (limited to 'src/encryption')
-rw-r--r-- | src/encryption/Olm.cpp | 1 | ||||
-rw-r--r-- | src/encryption/Olm.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index 157b9169..6c5044be 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -32,6 +32,7 @@ auto client_ = std::make_unique<mtx::crypto::OlmClient>(); std::map<std::string, std::string> request_id_to_secret_name; constexpr auto MEGOLM_ALGO = "m.megolm.v1.aes-sha2"; +constexpr auto OLM_ALGO = "m.olm.v1.curve25519-aes-sha2"; } namespace olm { diff --git a/src/encryption/Olm.h b/src/encryption/Olm.h index 55f7241d..a1ae5638 100644 --- a/src/encryption/Olm.h +++ b/src/encryption/Olm.h @@ -13,8 +13,6 @@ #include <CacheCryptoStructs.h> -constexpr auto OLM_ALGO = "m.olm.v1.curve25519-aes-sha2"; - namespace olm { Q_NAMESPACE |