aboutsummaryrefslogtreecommitdiff
path: root/src/account.cpp
diff options
context:
space:
mode:
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;
}