|
58 | 58 | ``` |
59 | 59 |
|
60 | 60 | This will generate the executables in the build directory. |
| 61 | + |
| 62 | + |
| 63 | +File Contents |
| 64 | +============= |
| 65 | + |
| 66 | +Installation Verification |
| 67 | +------------------------- |
| 68 | +* hello_sodium.c |
| 69 | + * "hello world" code to make sure you have libsodium installed and are linking to it correctly |
| 70 | + |
| 71 | +Symmetric Encryption |
| 72 | +-------------------- |
| 73 | +These examples use the simple [crypto_secretbox](https://download.libsodium.org/doc/secret-key_cryptography/authenticated_encryption.html) |
| 74 | +API which is an [authenticated encryption](https://en.wikipedia.org/wiki/Authenticated_encryption) (AE) cryptographic |
| 75 | +primitive that combines an [XSalsa20](https://download.libsodium.org/doc/advanced/xsalsa20.html) |
| 76 | +stream cipher with a [Poly1305](https://en.wikipedia.org/wiki/Poly1305) MAC. This API is very easy to use and is |
| 77 | +particularly suitable for use by newcomers to cryptography. If you have need for authenticating additional data which |
| 78 | +is transmitted in an unencrypted fashion, then you may prefer an AEAD primitive instead. |
| 79 | + |
| 80 | +* nacl_symmetric_gen.c |
| 81 | + * Generates a random 256-bit (32-byte) secret symmetric key for use with the **secretbox** API |
| 82 | +* nacl_encrypt_file.c |
| 83 | + * Encrypts a file using libsodium's **secretbox** secret-key authenticated encryption routines and adds a MAC of the ciphertext |
| 84 | +* nacl_decrypt_file.c |
| 85 | + * Authenticates and decrypts a ciphertext file encrypted using libsodium's **secretbox** secret-key encryption routines |
| 86 | + |
| 87 | +Public-key Digital Signatures |
| 88 | +----------------------------- |
| 89 | +These examples use the simple [crypto_sign](https://download.libsodium.org/doc/public-key_cryptography/public-key_signatures.html) |
| 90 | +API which is a public-key digital signature cryptographic primitive based on elliptic curves and uses the |
| 91 | +[Ed25519](https://ed25519.cr.yp.to) algorithm. |
| 92 | + |
| 93 | +* nacl_genkey.c |
| 94 | + * Generates a random Ed25519 Secret(signing)/Public(verifying) key pair using libsodium |
| 95 | +* nacl_sign.c |
| 96 | + * Uses libsodium to sign a message using the Ed25519 digital signature algorithm |
| 97 | +* nacl_verify.c |
| 98 | + * Uses libsodium to verify a signed message using the Ed25519 digital signature algorithm |
| 99 | +* ed25519_sodium_pynacl.c |
| 100 | + * Round trip "unit test" of using libsodium Ed25519 digital signature code along with PyNacl digital signature code |
| 101 | + |
| 102 | + |
0 commit comments