Pass the signaling key into decryptWebSocketMessage
De-couple this file from dependency on storage.
This commit is contained in:
@@ -37885,8 +37885,7 @@ axolotlInternal.RecipientRecord = function() {
|
||||
window.textsecure = window.textsecure || {};
|
||||
window.textsecure.crypto = {
|
||||
// Decrypts message into a raw string
|
||||
decryptWebsocketMessage: function(message) {
|
||||
var signaling_key = textsecure.storage.get("signaling_key"); //TODO: in crypto_storage
|
||||
decryptWebsocketMessage: function(message, signaling_key) {
|
||||
var aes_key = signaling_key.slice(0, 32);
|
||||
var mac_key = signaling_key.slice(32, 32 + 20);
|
||||
|
||||
|
Reference in New Issue
Block a user