We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

New NSS Samples

New NSS Sample Code

This collection of sample code demonstrates how NSS can be used for cryptographic operations, certificate handling, SSL, etc. It also demonstrates some best practices in the application of cryptography.

These new examples are a work in progress. See https://bugzilla.mozilla.org/show_bug.cgi?id=490238

How to download the samples:

hg clone https://hg.mozilla.org/projects/nss; cd nss; hg update SAMPLES_BRANCH

Samples list:

  1. Sample Code 1: Hashing
  2. Sample Code 2: Init NSS database
  3. Sample Code 3: Encrypt/Decrypt and Mac Using Token
  4. Sample Code 4: Encrypt/Decrypt and Mac Using Session Objects
  5. Sample Code 5: Encrypt/Decrypt/MAC Output Public Key as a CSR
  6. Sample Code 6: Encrypt/Decrypt/MAC Generating a PKCS#11 CSR

Common code used by these samples:

  1. Sample Code 0: Utilities

Thanks are due to Shailendra Jain, Mozilla Community member, who is the principal author of these samples.

Document Tags and Contributors

 Contributors to this page: bunnybooboo, emaldona@redhat.com
 Last updated by: bunnybooboo,