mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Add emscripten-compiled curve25519 module
Build with `grunt compile && grunt concat:curve25519` after installing emscripten. Enable by either (a) not loading nativeclient.js or (b) setting `textsecure.NATIVE_CLIENT = false` before loading nativeclient.js.
This commit is contained in:
@@ -22,9 +22,8 @@
|
||||
* for all low-level crypto operations,
|
||||
*/
|
||||
|
||||
// TODO Select an curve25519 implementation
|
||||
//var curve25519 = textsecure.NATIVE_CLIENT ? textsecure.nativeclient : textsecure.tweetnacl || asmjs;
|
||||
var curve25519 = textsecure.nativeclient;
|
||||
var curve25519 = window.curve25519;
|
||||
if (textsecure.NATIVE_CLIENT) curve25519 = textsecure.nativeclient;
|
||||
|
||||
window.textsecure.crypto = {
|
||||
getRandomBytes: function(size) {
|
||||
|
||||
3003
js/curve25519_compiled.js
Normal file
3003
js/curve25519_compiled.js
Normal file
File diff suppressed because one or more lines are too long
2872
js/curve25519_donna.js
Normal file
2872
js/curve25519_donna.js
Normal file
File diff suppressed because one or more lines are too long
2921
js/ed25519.js
Normal file
2921
js/ed25519.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user