add encrypted thumbnails to metadata for images.

correct decryption logic
This commit is contained in:
ansuz committed 2017-09-05 10:57:59 +02:00
1 parent b8e913c95a
commit b1a1f4ba13
2 files changed
+32 -15

No files matched your search

+1 -1
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);
}