blob: cfdae52d24688eddf9282a4b03b07d803714b868 [file] [log] [blame]
Tests generateKey() with bad ECDSA parameters.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
generateKey() without namedCurve...
error is: TypeError: EcKeyGenParams: namedCurve: Missing or not a string
generateKey() with namedCurve that is an integer...
error is: NotSupportedError: EcKeyGenParams: Unrecognized namedCurve
generateKey() with namedCurve 'p-256' that contains lower case character 'p'...
error is: NotSupportedError: EcKeyGenParams: Unrecognized namedCurve
generateKey() with namedCurve 'P-256aa' that contains trailing characters 'aa'...
error is: NotSupportedError: EcKeyGenParams: Unrecognized namedCurve
PASS successfullyParsed is true
TEST COMPLETE