|
|
@@ -82,7 +82,7 @@ internals.fetchKey = function (keyUri, options, next) {
|
|
|
exports.decrypt = function (stream, keyAttrs, options, next) {
|
|
|
var method = keyAttrs && keyAttrs.enumeratedString('method');
|
|
|
if (!options || !method || method === 'NONE') {
|
|
|
- return next(null, stream);
|
|
|
+ return next(null, stream, false);
|
|
|
}
|
|
|
|
|
|
if (method !== 'AES-128' || !keyAttrs.quotedString('uri') || !keyAttrs.hexadecimalInteger('iv')) {
|
|
|
@@ -108,6 +108,6 @@ exports.decrypt = function (stream, keyAttrs, options, next) {
|
|
|
decrypt.emit('error', err);
|
|
|
});
|
|
|
|
|
|
- return next(null, stream.pipe(decrypt));
|
|
|
+ return next(null, stream.pipe(decrypt), true);
|
|
|
});
|
|
|
};
|