add encrypted thumbnails to metadata for images.

correct decryption logic
This commit is contained in:
ansuz
2017-09-05 10:49:26 +02:00
parent b8e913c95a
commit b1a1f4ba13
2 changed files with 32 additions and 15 deletions

View File

@@ -185,7 +185,7 @@ define([
});
}
if (plaintext) {
if (i * cypherChunkLength < u8.length) { // not done
if ((2 + metadataLength + i * cypherChunkLength) < u8.length) { // not done
chunks.push(plaintext);
return setTimeout(again);
}