bitwiseshiftleft / sjcl

Stanford Javascript Crypto Library
http://bitwiseshiftleft.github.com/sjcl/
Other
7.18k stars 986 forks source link

Bugfix. Now it supports non-numeric curve param(e.g. 'k256') in gener… #416

Open yarnauy opened 4 years ago

yarnauy commented 4 years ago

I tried to generate ecc keys by k256 curve as below but it crashed.

var keys = sjcl.ecc.ecdsa.generateKeys('k256',0)

I found it dealt only with numeric curve and I fixed it.