File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,13 +49,16 @@ if (!common.hasFipsCrypto) {
4949 `${ cryptoType } with ${ digest } digest failed to evaluate to expected hash value.`
5050 ) ;
5151}
52- cryptoType = 'md5' ; digest = 'hex' ;
52+ cryptoType = 'md5' ;
53+ digest = 'hex' ;
5354assert . strictEqual ( a1 , '8308651804facb7b9af8ffc53a33a22d6a1c8ac2' ,
5455 `${ cryptoType } with ${ digest } digest failed to evaluate to expected hash value.` ) ;
55- cryptoType = 'sha256' ; digest = 'base64' ;
56+ cryptoType = 'sha256' ;
57+ digest = 'base64' ;
5658assert . strictEqual ( a2 , '2bX1jws4GYKTlxhloUB09Z66PoJZW+y+hq5R8dnx9l4=' ,
5759 `${ cryptoType } with ${ digest } digest failed to evaluate to expected hash value.` ) ;
58- cryptoType = 'sha512' ; digest = 'latin1' ;
60+ cryptoType = 'sha512' ;
61+ digest = 'latin1' ;
5962assert . deepStrictEqual (
6063 a3 ,
6164 Buffer . from (
@@ -66,7 +69,8 @@ assert.deepStrictEqual(
6669 '\u00c2\u0006\u00da0\u00a1\u00879(G\u00ed\'' ,
6770 'latin1' ) ,
6871 `${ cryptoType } with ${ digest } digest failed to evaluate to expected hash value.` ) ;
69- cryptoType = 'sha1' ; digest = 'hex' ;
72+ cryptoType = 'sha1' ;
73+ digest = 'hex' ;
7074assert . deepStrictEqual (
7175 a4 ,
7276 Buffer . from ( '8308651804facb7b9af8ffc53a33a22d6a1c8ac2' , 'hex' ) ,
You can’t perform that action at this time.
0 commit comments