Le vendredi 12 février 2016 16:06:15 UTC+1, Wan-Teh Chang a écrit : > 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
Thank you for your answer, but when i try to call PK11_Verify inside a js, I I get message errors back as:"Couldn't find function symbol in Library" . This probleme is disccused in : http://stackoverflow.com/questions/31064708/is-pkcs11-verify-function-supported-in-nss-3-18-1-public-function You can figure out that if you use the "dependency walker" software with the "nss3.dll" I you will see that PK11_Verify is does not exist. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto