Graham Leggett wrote, On 2008-08-31 09:52: > Hi all, > > I am trying to port some symmetrical encryption / decryption code using > OpenSSL's EVP_CipherUpdate function to NSS, and I am running into > trouble trying to find the API documentation for NSS. > > So far, the closest to documentation that I have found is a list of the > API functions, but none of these functions are in themselves documented. > Most specifically, I need to know what #include files are required for > each function, as my attempts at guessing have been unsuccessful. > > http://developer.mozilla.org/en/NSS_functions
The documents on "devmo" are rather cursory. The most complete documentation is still on www.mozilla.org, IMO. > So far it looks like PK11_CipherOp is the corresponding function that I > need to use. Is this correct? > > How do I set up the symmetrical key, cipher and digest for PK11_CipherOp > to replace the OpenSSL EVP_BytesToKey function? I can't answer your question about corresponding functions, but as for "how to" on using PK11_CipherOp, I can point you to a couple of pages that I found by going to www.mozilla.org and typing PK11_CipherOp in the search box on that page. http://www.mozilla.org/projects/security/pki/nss/sample-code/sample2.html http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn5.html _______________________________________________ dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

