-
-
Notifications
You must be signed in to change notification settings - Fork 14
Description
Hi,
I have an AKIS card (v2.6.2) to store EC keys. I can sign any data by using bouncy castle in java but it throws CKR_BUFFER_TOO_SMALL error by using node-webcrypto-p11.
Key info is : sign {"crypto":"AKIS","algorithm":{"name":"ECDSA","hash":"SHA-384"},"key":{"algorithm":{"name":"ECDSA","hash":"SHA-384","namedCurve":"30820140020101303c06072a8648ce3d0101023100fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff30640430fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc0430b3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef046104aa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab73617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f023100ffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973020101","token":true,"sensitive":true,"label":"nes"},"type":"private","extractable":false,"usages":["sign"],"id":"da266a488f872eea0ff131c304e1c16fdba533c7"}}
I think it cannot identify curve. I have tested Safenet eToken 5100 with the same key and certificate then it works well (curve is P-384). But for AKIS, i got CKR_BUFFER_TOO_SMALL error.
Any comments?