aboutsummaryrefslogtreecommitdiff
path: root/src/account.cpp
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-07 09:03:12 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-07 09:03:12 +0100
commita30a64d17931c43ca20090220272ce9257064072 (patch)
tree8d7d387dd9e5d13535a6061a33bdcca455664c2c /src/account.cpp
parentf1cd5613f68beee08ab479edf2a5ae50c91a63fe (diff)
Rename generate_key to curve25519_generate_key
Diffstat (limited to 'src/account.cpp')
-rw-r--r--src/account.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account.cpp b/src/account.cpp
index 2323856..198c5d3 100644
--- a/src/account.cpp
+++ b/src/account.cpp
@@ -53,7 +53,7 @@ std::size_t olm::Account::new_account(
unsigned id = 0;
identity_key.id = ++id;
- olm::generate_key(random, identity_key.key);
+ olm::curve25519_generate_key(random, identity_key.key);
random += 32;
random += 32;
@@ -61,7 +61,7 @@ std::size_t olm::Account::new_account(
for (unsigned i = 0; i < 10; ++i) {
LocalKey & key = *one_time_keys.insert(one_time_keys.end());
key.id = ++id;
- olm::generate_key(random, key.key);
+ olm::curve25519_generate_key(random, key.key);
random += 32;
}