Skip to content
Snippets Groups Projects
Unverified Commit 9b652bb1 authored by David Baker's avatar David Baker Committed by GitHub
Browse files

Merge pull request #58 from matrix-org/dbkr/method_consistency

Call appropriate wrapper function
parents 04f58bb0 0ad32c98
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment