简体   繁体   English

NSS 3.18.1是否支持PKCS11验证功能公共功能

[英]Is PKCS11 verify function supported in NSS 3.18.1 Public function

I am trying to call PK11_Verify inside a js. 我正在尝试在js中调用PK11_Verify。

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 找不到函数PK11_Verify进行声明
loadLibraries failed: Error: Couldn't find function symbol in Library loadLibraries失败:错误:在库中找不到函数符号

I have checked the version NSS in the web browser NSS 3.18.1 Basic ECC and it supports PK11_Verify as public function. 我已经在网络浏览器NSS 3.18.1 Basic ECC检查了版本NSS,它支持PK11_Verify作为公共功能。 Any idea what will be the root cause? 知道什么是根本原因吗?

Thank you 谢谢

This probably the reason why PK11_Verify is not listed as function in nss3.dll. 这可能是在nss3.dll中未将PK11_Verify列为功能的原因。 The function simple not exist as public API. 简单的功能作为公共API不存在。

PK11_Verify API不公开

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM