Dedupe methods
Define textsecure.crypto in terms of libsignal.crypto. // FREEBIE
This commit is contained in:
parent
58452066aa
commit
f8e176fd40
9 changed files with 35 additions and 107 deletions
|
@ -91,8 +91,8 @@
|
|||
}.bind(this));
|
||||
},
|
||||
createAccount: function(number, verificationCode, identityKeyPair, deviceName) {
|
||||
var signalingKey = textsecure.crypto.getRandomBytes(32 + 20);
|
||||
var password = btoa(getString(textsecure.crypto.getRandomBytes(16)));
|
||||
var signalingKey = libsignal.crypto.getRandomBytes(32 + 20);
|
||||
var password = btoa(getString(libsignal.crypto.getRandomBytes(16)));
|
||||
password = password.substring(0, password.length - 2);
|
||||
var registrationId = libsignal.KeyHelper.generateRegistrationId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue