aboutsummaryrefslogtreecommitdiff
path: root/src/utility.cpp
diff options
context:
space:
mode:
authorRichard van der Hoff <github@rvanderhoff.org.uk>2016-09-05 10:36:43 +0100
committerGitHub <noreply@github.com>2016-09-05 10:36:43 +0100
commit9d16d820890e7b301baa8b69694aaea19f9bfc7f (patch)
tree659be65eb1b131073bf9580292214b3fc24aa982 /src/utility.cpp
parent0c3f527dfd46d3056d5b3690836c102f0e0adfb4 (diff)
parent39212987bdef8e16794e756e3c78b531be25b70a (diff)
Merge pull request #13 from matrix-org/rav/split_out_key_lengths
Create new constants for key lengths, etc
Diffstat (limited to 'src/utility.cpp')
-rw-r--r--src/utility.cpp2
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);
}