File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -829,9 +829,8 @@ var UTIL = require('../../lib/util');
829829
830830 ASSERT . throws ( function ( ) {
831831 publicKey . verify ( md . digest ( ) . getBytes ( ) , S ) ;
832- } , {
833- message : 'Unparsed DER bytes remain after ASN.1 parsing.'
834- } ) ;
832+ } ,
833+ / ^ E r r o r : U n p a r s e d D E R b y t e s r e m a i n a f t e r A S N .1 p a r s i n g .$ / ) ;
835834 }
836835
837836 function _checkBadDigestInfo ( publicKey , S , skipTailingGarbage ) {
@@ -842,9 +841,8 @@ var UTIL = require('../../lib/util');
842841 publicKey . verify ( md . digest ( ) . getBytes ( ) , S , undefined , {
843842 _parseAllDigestBytes : ! skipTailingGarbage
844843 } ) ;
845- } , {
846- message : 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.'
847- } ) ;
844+ } ,
845+ / ^ E r r o r : A S N .1 o b j e c t d o e s n o t c o n t a i n a v a l i d R S A S S A - P K C S 1 - v 1 _ 5 D i g e s t I n f o v a l u e .$ / ) ;
848846 }
849847
850848 it ( 'should check DigestInfo structure' , function ( ) {
You can’t perform that action at this time.
0 commit comments