Is PKCS11 verify function supported in NSS 3.18.1 Public function

╄→гoц情女王★ 提交于 2019-12-11 10:41:37

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!