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