问题
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.
来源:https://stackoverflow.com/questions/31064708/is-pkcs11-verify-function-supported-in-nss-3-18-1-public-function