-->

Is PKCS11 verify function supported in NSS 3.18.1

2019-08-03 16:40发布

问题:

I am trying to call PK11_Verify inside a js.

let PK11_Verify = null;
PK11_Verify = declareFunction("PK11_Verify", nss3, [ SECStatus, SECKEYPublicKey, SECItem.ptr, SECItem.ptr, ctypes.voidptr_t ]);

// ...

let rv = PK11_Verify(tokenPublicKey, signature.address(), digest.address(), null);

I get message errors back as:

Couldn't find function PK11_Verify to declare
loadLibraries failed: Error: Couldn't find function symbol in Library

I have checked the version NSS in the web browser NSS 3.18.1 Basic ECC and it supports PK11_Verify as public function. Any idea what will be the root cause?

Thank you

回答1:

This probably the reason why PK11_Verify is not listed as function in nss3.dll. The function simple not exist as public API.