diff options
author | David Baker <dave@matrix.org> | 2018-10-01 13:22:04 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2018-10-01 13:22:04 +0100 |
commit | 0ad32c9896864963d61f8c3723819295991a51d5 (patch) | |
tree | 799ca448376dfbfe39ad3c54ab4e964cf923a638 /javascript | |
parent | d6cd18df403e4323ee583b1029989eff26b33459 (diff) |
Call appropriate wrapper function
Don't think this matters since there's no PkEncryption /
PkDecryption object being passed, but for the sake of consistency
Diffstat (limited to 'javascript')
-rw-r--r-- | javascript/olm_pk.js | 2 |
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); |