Remove axolotl.storage usage from libtextsecure

This commit is contained in:
Matt Corallo 2015-02-13 12:15:28 -08:00
parent b790f82849
commit e2e06b2d3c
3 changed files with 28 additions and 28 deletions

View file

@ -48,7 +48,7 @@
window.textsecure.crypto = {
// Decrypts message into a raw string
decryptWebsocketMessage: function(message) {
var signaling_key = axolotl.api.storage.get("signaling_key"); //TODO: in crypto_storage
var signaling_key = textsecure.storage.getEncrypted("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));