crypto: Make Decipher._flush() emit errors.
authorKai Groner <kai@gronr.com>
Thu, 18 Apr 2013 23:01:14 +0000 (19:01 -0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 4 Dec 2013 15:52:15 +0000 (19:52 +0400)
commit98be8df571f92ad0b846209c21cc00139bc14805
tree0b36a1d114063b747f8ae7955b4a991bf4f77252
parentb371d4ae8fdbf1b9046b9076cae1ee5fdc196724
crypto: Make Decipher._flush() emit errors.

When Decipher processes a stream using an incorrect key, the
DecipherFinal() method throws an unhandled exception at the end of the
stream.
lib/crypto.js
test/simple/test-crypto-stream.js