aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
parent4f1bb49d20ff7e9583a764b5d7d6d6cd9dc26870 (diff)
Give SHA256 functions C bindings
Diffstat (limited to 'tests')
-rw-r--r--tests/test_crypto.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_crypto.cpp b/tests/test_crypto.cpp
index 4606c52..e86f3ab 100644
--- a/tests/test_crypto.cpp
+++ b/tests/test_crypto.cpp
@@ -186,7 +186,7 @@ std::uint8_t expected[32] = {
std::uint8_t actual[32];
-olm::sha256(input, sizeof(input), actual);
+crypto_sha256(input, sizeof(input), actual);
assert_equals(expected, actual, 32);
@@ -207,7 +207,7 @@ std::uint8_t expected[32] = {
std::uint8_t actual[32];
-olm::hmac_sha256(input, sizeof(input), input, sizeof(input), actual);
+crypto_hmac_sha256(input, sizeof(input), input, sizeof(input), actual);
assert_equals(expected, actual, 32);
@@ -242,7 +242,7 @@ std::uint8_t hmac_expected_output[32] = {
std::uint8_t hmac_actual_output[32] = {};
-olm::hmac_sha256(
+crypto_hmac_sha256(
salt, sizeof(salt),
input, sizeof(input),
hmac_actual_output
@@ -261,7 +261,7 @@ std::uint8_t hkdf_expected_output[42] = {
std::uint8_t hkdf_actual_output[42] = {};
-olm::hkdf_sha256(
+crypto_hkdf_sha256(
input, sizeof(input),
salt, sizeof(salt),
info, sizeof(info),