File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ const ecc_tests =
119119
120120 if ( ecc1 . verify_hash ( sig , message ) == true )
121121 {
122- console . log ( 'PASS ecc importExport ' )
122+ console . log ( 'PASS ecc importExportx963 ' )
123123 }
124124 else
125125 {
126- console . log ( 'FAIL ecc importExport ' , sig . toString ( 'hex' ) )
126+ console . log ( 'FAIL ecc importExportx963 ' , sig . toString ( 'hex' ) )
127127 }
128128
129129 ecc0 . free ( )
@@ -145,20 +145,18 @@ const ecc_tests =
145145
146146 ecc0 . free ( )
147147
148- ecc0 = new WolfSSLEcc ( )
149-
150148 ecc1 . PrivateKeyDecode ( privKeyDer )
151149 ecc2 . PublicKeyDecode ( pubKeyDer )
152150
153151 const sigAfter = ecc1 . sign_hash ( message )
154152
155- if ( ecc2 . verify_hash ( sigBefore , message ) == true && ecc2 . verify_hash ( sigAfter , message ) )
153+ if ( ecc2 . verify_hash ( sigBefore , message ) == true && ecc2 . verify_hash ( sigAfter , message ) == true )
156154 {
157- console . log ( 'PASS ecc importExport ' )
155+ console . log ( 'PASS ecc importExportDer ' )
158156 }
159157 else
160158 {
161- console . log ( 'FAIL ecc importExport public' )
159+ console . log ( 'FAIL ecc importExportDer public' )
162160 }
163161
164162 ecc1 . free ( )
You can’t perform that action at this time.
0 commit comments