mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix cryptojs hmac implementation
Apparently the bowerized version of cryptojs's WordArray.create doesn't handle arraybuffers correctly.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
assertIsArrayBuffer(key);
|
||||
assertIsArrayBuffer(input);
|
||||
return CryptoJS.HmacSHA256(
|
||||
CryptoJS.lib.WordArray.create(input),
|
||||
CryptoJS.enc.Latin1.parse(getString(input)),
|
||||
CryptoJS.enc.Latin1.parse(getString(key))
|
||||
).toString(CryptoJS.enc.Latin1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user