"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libtextsecure/libsignal-protocol.js" between
Signal-Desktop-1.35.2.tar.gz and Signal-Desktop-1.36.1.tar.gz

About: Signal-Desktop is a cross-platform encrypted messaging service (also available for mobile devices).

libsignal-protocol.js  (Signal-Desktop-1.35.2):libsignal-protocol.js  (Signal-Desktop-1.36.1)
skipping to change at line 25445 skipping to change at line 25445
}, },
Ed25519Sign: function(privKey, message) { Ed25519Sign: function(privKey, message) {
return Internal.Curve.async.Ed25519Sign(privKey, message); return Internal.Curve.async.Ed25519Sign(privKey, message);
}, },
Ed25519Verify: function(pubKey, msg, sig) { Ed25519Verify: function(pubKey, msg, sig) {
return Internal.Curve.async.Ed25519Verify(pubKey, msg, sig); return Internal.Curve.async.Ed25519Verify(pubKey, msg, sig);
} }
}; };
// HKDF for TextSecure has a bit of additional handling - salts always end u p being 32 bytes // HKDF for TextSecure has a bit of additional handling - salts always end u p being 32 bytes
Internal.HKDF = function(input, salt, info) { Internal.HKDF = function(input, salt, info = new ArrayBuffer()) {
return Internal.crypto.HKDF(input, salt, util.toArrayBuffer(info)); return Internal.crypto.HKDF(input, salt, util.toArrayBuffer(info));
}; };
Internal.verifyMAC = function(data, key, mac, length) { Internal.verifyMAC = function(data, key, mac, length) {
return Internal.crypto.sign(key, data).then(function(calculated_mac) { return Internal.crypto.sign(key, data).then(function(calculated_mac) {
if (mac.byteLength != length || calculated_mac.byteLength < length) { if (mac.byteLength != length || calculated_mac.byteLength < length) {
throw new Error("Bad MAC length"); throw new Error("Bad MAC length");
} }
var a = new Uint8Array(calculated_mac); var a = new Uint8Array(calculated_mac);
var b = new Uint8Array(mac); var b = new Uint8Array(mac);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)