From cd4b98d426f54fe28b5da595875938eb95d18b51 Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 6 Nov 2014 00:49:54 -0800 Subject: [PATCH] Remove 1mod8 https://github.com/WhisperSystems/TextSecure/commit/27b5bf54cc2ddd809eedcbb627dbda30d77b2eae --- js/crypto.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/js/crypto.js b/js/crypto.js index 13453073738..e2b9554612c 100644 --- a/js/crypto.js +++ b/js/crypto.js @@ -69,8 +69,6 @@ window.textsecure.crypto = function() { if (textsecure.nacl.USE_NACL) { return textsecure.nacl.postNaclMessage({command: "bytesToPriv", priv: privKey}).then(function(message) { var priv = message.res.slice(0, 32); - if (!isIdentity) - new Uint8Array(priv)[0] |= 0x01; return textsecure.nacl.postNaclMessage({command: "privToPub", priv: priv}).then(function(message) { return { pubKey: prependVersion(message.res.slice(0, 32)), privKey: priv }; }); @@ -81,9 +79,6 @@ window.textsecure.crypto = function() { priv[0] &= 0xFFF8; priv[15] = (priv[15] & 0x7FFF) | 0x4000; - if (!isIdentity) - priv[0] |= 0x0001; - //TODO: fscking type conversion return Promise.resolve({ pubKey: prependVersion(toArrayBuffer(curve25519(priv))), privKey: privKey}); }