aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2018-10-11 18:16:39 +0100
committerDavid Baker <dave@matrix.org>2018-10-11 18:16:39 +0100
commitfac1d52dfe25d8bf6119cc41645a84c9111c6f6e (patch)
tree6ff5aab106c2889acfa7c6f443bd457fa10e3c2e /src
parente73ebcea67b50ada065a362ec774bd66ec47b065 (diff)
Add aliases for deprecated functions
Diffstat (limited to 'src')
-rw-r--r--src/pk.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pk.cpp b/src/pk.cpp
index 5ee35d9..5cfcea2 100644
--- a/src/pk.cpp
+++ b/src/pk.cpp
@@ -191,6 +191,10 @@ size_t olm_pk_private_key_length(void) {
return CURVE25519_KEY_LENGTH;
}
+size_t olm_pk_generate_key_random_length(void) {
+ return olm_pk_private_key_length();
+}
+
size_t olm_pk_key_length(void) {
return olm::encode_base64_length(CURVE25519_KEY_LENGTH);
}
@@ -220,6 +224,14 @@ size_t olm_pk_key_from_private(
return 0;
}
+size_t olm_pk_generate_key(
+ OlmPkDecryption * decryption,
+ void * pubkey, size_t pubkey_length,
+ void * privkey, size_t privkey_length
+) {
+ return olm_pk_key_from_private(decryption, pubkey, pubkey_length, privkey, privkey_length);
+}
+
namespace {
static const std::uint32_t PK_DECRYPTION_PICKLE_VERSION = 1;