diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-24 13:33:33 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-24 13:33:33 +0100 |
commit | 2e7800cf650197f4b8998ef8ac24d08daa316a2f (patch) | |
tree | 1f9e5e06b755f929c7bad363b77eaafdd21d706c /tests/test_crypto.cpp | |
parent | b1c5732fc8c89ee9217d0f54408f860565fa01f4 (diff) | |
parent | 2fd28a66824bda7b86c08b065736009c39761987 (diff) |
Merge branch 'rav/c_bindings'
Diffstat (limited to 'tests/test_crypto.cpp')
-rw-r--r-- | tests/test_crypto.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_crypto.cpp b/tests/test_crypto.cpp index 4606c52..1041538 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); +_olm_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); +_olm_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( +_olm_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( +_olm_crypto_hkdf_sha256( input, sizeof(input), salt, sizeof(salt), info, sizeof(info), |