aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHubert Chathi <[email protected]>2018-06-26 22:18:25 -0400
committerHubert Chathi <[email protected]>2018-06-27 17:36:55 -0400
commit552da6eafecc29f6900854ebe7c55fa8a96002e4 (patch)
tree0648896663194f035d926d6e94a11d946e607a3a
parent128d45cc83b1378422625ea975152e1e3c9d88f6 (diff)
downloadolm-552da6eafecc29f6900854ebe7c55fa8a96002e4.zip
olm-552da6eafecc29f6900854ebe7c55fa8a96002e4.tar.gz
olm-552da6eafecc29f6900854ebe7c55fa8a96002e4.tar.bz2
use the correct method to get the random length
-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 e63e907..700139d 100644
--- a/javascript/olm_pk.js
+++ b/javascript/olm_pk.js
@@ -120,7 +120,7 @@ PkDecryption.prototype['free'] = function() {
PkDecryption.prototype['generate_key'] = restore_stack(function () {
var random_length = pk_decryption_method(
- Module['_olm_pk_key_length'] // FIXME: wrong method
+ Module['_olm_pk_generate_key_random_length']
)();
var random_buffer = random_stack(random_length);
var pubkey_length = pk_encryption_method(