aboutsummaryrefslogtreecommitdiff
path: root/src/utility.cpp
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2016-05-13 12:56:23 +0100
committerRichard van der Hoff <richard@matrix.org>2016-05-23 18:55:05 +0100
commite533b0dc8ef606aa808b38d2f49d9baf438dae47 (patch)
tree5d49a825bdfbc9e3a71d96c357ab9375fb17b695 /src/utility.cpp
parent4f1bb49d20ff7e9583a764b5d7d6d6cd9dc26870 (diff)
Give SHA256 functions C bindings
Diffstat (limited to 'src/utility.cpp')
-rw-r--r--src/utility.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utility.cpp b/src/utility.cpp
index bc51cff..2217778 100644
--- a/src/utility.cpp
+++ b/src/utility.cpp
@@ -23,7 +23,7 @@ olm::Utility::Utility(
size_t olm::Utility::sha256_length() {
- return olm::SHA256_OUTPUT_LENGTH;
+ return SHA256_OUTPUT_LENGTH;
}
@@ -35,8 +35,8 @@ size_t olm::Utility::sha256(
last_error = olm::ErrorCode::OUTPUT_BUFFER_TOO_SMALL;
return std::size_t(-1);
}
- olm::sha256(input, input_length, output);
- return olm::SHA256_OUTPUT_LENGTH;
+ crypto_sha256(input, input_length, output);
+ return SHA256_OUTPUT_LENGTH;
}