From a30a64d17931c43ca20090220272ce9257064072 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Tue, 7 Jul 2015 09:03:12 +0100 Subject: Rename generate_key to curve25519_generate_key --- tests/test_crypto.cpp | 6 +++--- tests/test_ratchet.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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"; -- cgit v1.2.3