hwcrypto / hwcrypto.js

Browser JavaScript library for working with hardware tokens
https://hwcrypto.github.io
MIT License
157 stars 47 forks source link

CKR_ARGUMENTS_BAD, while signing SHA-1 hash #35

Closed pareshchouhan closed 7 years ago

pareshchouhan commented 7 years ago
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:53.0) Gecko/20100101 Firefox/53.0

sign() clicked on Tue, 30 May 2017 10:48:46 GMT
Signing SHA-1: 030520DE07E85163FF5300D7E3F33516BB9077CB
sign() failed: Error: CKR_ARGUMENTS_BAD

works fine for SHA-256 though.

pareshchouhan commented 7 years ago

uh, this was with web-eid.js and web-eid, this seems to work fine with Chrome Token Signing and hwcrypto

martinpaljak commented 7 years ago

Just for the reference: web eid does not support sha1