Merge (un)encrypted storage layers
This commit is contained in:
parent
454b4726bd
commit
00cb420d37
12 changed files with 102 additions and 143 deletions
|
@ -48,7 +48,7 @@
|
|||
window.textsecure.crypto = {
|
||||
// Decrypts message into a raw string
|
||||
decryptWebsocketMessage: function(message) {
|
||||
var signaling_key = textsecure.storage.getEncrypted("signaling_key"); //TODO: in crypto_storage
|
||||
var signaling_key = textsecure.storage.get("signaling_key"); //TODO: in crypto_storage
|
||||
var aes_key = toArrayBuffer(signaling_key.substring(0, 32));
|
||||
var mac_key = toArrayBuffer(signaling_key.substring(32, 32 + 20));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue