diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-02 09:32:49 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-02 09:32:49 +0900 |
commit | 35cfef7a4253d49a37e5ce21c337fbb3d2633c42 (patch) | |
tree | dfcc77c4e404b6b8f07a4c9ee6283e70e4723883 /lib/e2ee.h | |
parent | 5b37e15d6a57d3b689c88f5cfce7afea9787a034 (diff) | |
parent | 5b236dfe895c7766002559570aa29c9033009228 (diff) | |
download | libquotient-35cfef7a4253d49a37e5ce21c337fbb3d2633c42.tar.gz libquotient-35cfef7a4253d49a37e5ce21c337fbb3d2633c42.zip |
Merge branch 'master' into use-clang-format
Diffstat (limited to 'lib/e2ee.h')
-rw-r--r-- | lib/e2ee.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/e2ee.h b/lib/e2ee.h new file mode 100644 index 00000000..11f411f1 --- /dev/null +++ b/lib/e2ee.h @@ -0,0 +1,30 @@ +#pragma once + +#include <QtCore/QStringList> + +namespace QMatrixClient +{ +static const auto CiphertextKeyL = "ciphertext"_ls; +static const auto SenderKeyKeyL = "sender_key"_ls; +static const auto DeviceIdKeyL = "device_id"_ls; +static const auto SessionIdKeyL = "session_id"_ls; + +static const auto AlgorithmKeyL = "algorithm"_ls; +static const auto RotationPeriodMsKeyL = "rotation_period_ms"_ls; +static const auto RotationPeriodMsgsKeyL = "rotation_period_msgs"_ls; + +static const auto AlgorithmKey = QStringLiteral("algorithm"); +static const auto RotationPeriodMsKey = QStringLiteral("rotation_period_ms"); +static const auto RotationPeriodMsgsKey = + QStringLiteral("rotation_period_msgs"); + +static const auto Ed25519Key = QStringLiteral("ed25519"); +static const auto Curve25519Key = QStringLiteral("curve25519"); +static const auto SignedCurve25519Key = QStringLiteral("signed_curve25519"); +static const auto OlmV1Curve25519AesSha2AlgoKey = + QStringLiteral("m.olm.v1.curve25519-aes-sha2"); +static const auto MegolmV1AesSha2AlgoKey = + QStringLiteral("m.megolm.v1.aes-sha2"); +static const QStringList SupportedAlgorithms = { OlmV1Curve25519AesSha2AlgoKey, + MegolmV1AesSha2AlgoKey }; +} // namespace QMatrixClient |