diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-09-02 15:11:14 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-09-02 15:11:14 +0100 |
commit | 39212987bdef8e16794e756e3c78b531be25b70a (patch) | |
tree | 659be65eb1b131073bf9580292214b3fc24aa982 /src/utility.cpp | |
parent | 0c3f527dfd46d3056d5b3690836c102f0e0adfb4 (diff) |
Create new constants for key lengths, etc
We were using olm::KEY_LENGTH for everything under the sun which happened to be
32 bytes long, and making a bunch of assumptions in the process. Create a bunch
of new constants (as C #defines rather than C++ consts so that I can use them
in another forthcoming refactor).
Diffstat (limited to 'src/utility.cpp')
-rw-r--r-- | src/utility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utility.cpp b/src/utility.cpp index 67029c9..e33351c 100644 --- a/src/utility.cpp +++ b/src/utility.cpp @@ -45,7 +45,7 @@ size_t olm::Utility::ed25519_verify( std::uint8_t const * message, std::size_t message_length, std::uint8_t const * signature, std::size_t signature_length ) { - if (signature_length < olm::SIGNATURE_LENGTH) { + if (signature_length < ED25519_SIGNATURE_LENGTH) { last_error = OlmErrorCode::OLM_BAD_MESSAGE_MAC; return std::size_t(-1); } |