aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_crypto.cpp6
-rw-r--r--tests/test_ratchet.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_crypto.cpp b/tests/test_crypto.cpp
index 9b7637b..b8ffbcd 100644
--- a/tests/test_crypto.cpp
+++ b/tests/test_crypto.cpp
@@ -59,13 +59,13 @@ std::uint8_t expected_agreement[32] = {
};
olm::Curve25519KeyPair alice_pair;
-olm::generate_key(alice_private, alice_pair);
+olm::curve25519_generate_key(alice_private, alice_pair);
assert_equals(alice_private, alice_pair.private_key, 32);
assert_equals(alice_public, alice_pair.public_key, 32);
olm::Curve25519KeyPair bob_pair;
-olm::generate_key(bob_private, bob_pair);
+olm::curve25519_generate_key(bob_private, bob_pair);
assert_equals(bob_private, bob_pair.private_key, 32);
assert_equals(bob_public, bob_pair.public_key, 32);
@@ -91,7 +91,7 @@ std::uint8_t message[] = "message";
std::size_t message_length = sizeof(message) - 1;
olm::Curve25519KeyPair key_pair;
-olm::generate_key(private_key, key_pair);
+olm::curve25519_generate_key(private_key, key_pair);
std::uint8_t signature[64];
diff --git a/tests/test_ratchet.cpp b/tests/test_ratchet.cpp
index b2db8e7..cbb3c52 100644
--- a/tests/test_ratchet.cpp
+++ b/tests/test_ratchet.cpp
@@ -34,7 +34,7 @@ olm::CipherAesSha256 cipher(
std::uint8_t random_bytes[] = "0123456789ABDEF0123456789ABCDEF";
olm::Curve25519KeyPair alice_key;
-olm::generate_key(random_bytes, alice_key);
+olm::curve25519_generate_key(random_bytes, alice_key);
std::uint8_t shared_secret[] = "A secret";