diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-07-07 09:03:12 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-07-07 09:03:12 +0100 |
commit | a30a64d17931c43ca20090220272ce9257064072 (patch) | |
tree | 8d7d387dd9e5d13535a6061a33bdcca455664c2c /tests/test_crypto.cpp | |
parent | f1cd5613f68beee08ab479edf2a5ae50c91a63fe (diff) |
Rename generate_key to curve25519_generate_key
Diffstat (limited to 'tests/test_crypto.cpp')
-rw-r--r-- | tests/test_crypto.cpp | 6 |
1 files changed, 3 insertions, 3 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]; |