aboutsummaryrefslogtreecommitdiff
path: root/javascript/olm_pk.js
diff options
context:
space:
mode:
authorDavid Baker <dbkr@users.noreply.github.com>2018-10-02 12:10:29 +0100
committerGitHub <noreply@github.com>2018-10-02 12:10:29 +0100
commit9b652bb127a51cb82304315612480fc9fb7a3a0a (patch)
tree7fe74b4cae311afab45da43ef14d9db7b4981716 /javascript/olm_pk.js
parent04f58bb0c90c7656f54d3aa5bb0bf067c60db23c (diff)
parent0ad32c9896864963d61f8c3723819295991a51d5 (diff)
Merge pull request #58 from matrix-org/dbkr/method_consistency
Call appropriate wrapper function
Diffstat (limited to 'javascript/olm_pk.js')
-rw-r--r--javascript/olm_pk.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/javascript/olm_pk.js b/javascript/olm_pk.js
index 2542707..25db29a 100644
--- a/javascript/olm_pk.js
+++ b/javascript/olm_pk.js
@@ -123,7 +123,7 @@ PkDecryption.prototype['generate_key'] = restore_stack(function () {
Module['_olm_pk_generate_key_random_length']
)();
var random_buffer = random_stack(random_length);
- var pubkey_length = pk_encryption_method(
+ var pubkey_length = pk_decryption_method(
Module['_olm_pk_key_length']
)();
var pubkey_buffer = stack(pubkey_length + NULL_BYTE_PADDING_LENGTH);