Skip to content

Commit 60bddb0

Browse files
author
John Bland
committed
fix a few typos in the ecc tests
1 parent 0d4f993 commit 60bddb0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

tests/ecc.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)