Simone wrote: > > Hi everybody, > I'm getting problems hashing a buffer via the PK11_HashBuf API in NSS. > > I have to set the SECOidTag hashAlg either to SEC_OID_MD5 (= 3) or to > SEC_OID_SHA1 (= 4), but the function itself fails. > I looked at the code inside it and I found that it's not able to > create a PK11Context via the PK11_CreateDigestContext....it always > returns NULL regardless of the hashAlg parameter...... > > Anyone knows where is my mistake?
I'd guess that NSS has not been initialized properly, or that no PKCS 11 modules have been loaded that implement the requested algorithms, causing the "Best Slot" lists for those mechanisms to be empty. -- Nelson Bolyard Disclaimer: I speak for myself, not for Netscape
