On Wed, Feb 10, 2016 at 11:50 PM, WebDoctor <yassine.sa...@gmail.com> wrote:
> Hi,
>
> I'm working in a Firefox extension that will use some cryptographic 
> operations.
>
> The problem I found is that when I sign data using the private key in the 
> server-side, I couldn't find any appropriate function in NSS to do public key 
> signature validation.
>
> I tried to use PK11_Verify, but this function is not listed as public 
> function in nss3.dll, so I got the error "Couldn't find function PK11_Verify 
> to declare".
>
> What can I do to verify a signature using NSS?

You can use PK11_Verify (declared in "pk11pub.h") or the VFY_xxx
functions declared in "cryptohi.h" to verify a signature.

NSS Technical Note 5 has sample code for PK11_Verify:

https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/nss_tech_notes/nss_tech_note5

You can also look at how it is used in ssl3con.c:

http://mxr.mozilla.org/nss/ident?i=PK11_Verify

PK11_Verify is a public function exported from nss3.dll. We should
find out why you couldn't use it.

Wan-Teh
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to