Call appropriate wrapper function
Don't think this matters since there's no PkEncryption / PkDecryption object being passed, but for the sake of consistency
This commit is contained in:
parent
d6cd18df40
commit
0ad32c9896
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ PkDecryption.prototype['generate_key'] = restore_stack(function () {
|
||||||
Module['_olm_pk_generate_key_random_length']
|
Module['_olm_pk_generate_key_random_length']
|
||||||
)();
|
)();
|
||||||
var random_buffer = random_stack(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']
|
Module['_olm_pk_key_length']
|
||||||
)();
|
)();
|
||||||
var pubkey_buffer = stack(pubkey_length + NULL_BYTE_PADDING_LENGTH);
|
var pubkey_buffer = stack(pubkey_length + NULL_BYTE_PADDING_LENGTH);
|
||||||
|
|
Loading…
Reference in a new issue