freebsd-src/demos
Enji Cooper 1070e7dca8 Import OpenSSL 3.0.14
This release resolves 3 upstream found CVEs:
- Fixed potential use after free after SSL_free_buffers() is called (CVE-2024-4741)
- Fixed an issue where checking excessively long DSA keys or parameters may be very slow (CVE-2024-4603)
- Fixed unbounded memory growth with session handling in TLSv1.3 (CVE-2024-2511)
2024-06-20 16:24:17 -07:00
..
bio OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
certs OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
cipher OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
cms OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
digest Import OpenSSL 3.0.14 2024-06-20 16:24:17 -07:00
encode OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
kdf OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
keyexch OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
mac OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
pkcs12 OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
pkey OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
signature OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
smime OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00
README.txt OpenSSL: Vendor import of OpenSSL 3.0.13 2024-02-02 01:48:38 -08:00

OpenSSL Demonstration Applications

This folder contains source code that demonstrates the proper use of the OpenSSL
library API.

bio:                   Demonstration of a simple TLS client and server

certs:                 Demonstration of creating certs, using OCSP

cipher:
aesgcm.c               Demonstration of symmetric cipher GCM mode encrypt/decrypt
aesccm.c               Demonstration of symmetric cipher CCM mode encrypt/decrypt
ariacbc.c              Demonstration of symmetric cipher CBC mode encrypt/decrypt

cms:

digest:
EVP_MD_demo.c          Compute a digest from multiple buffers
EVP_MD_stdin.c         Compute a digest with data read from stdin
EVP_MD_xof.c           Compute a digest using the SHAKE256 XOF
EVP_f_md.c             Compute a digest using BIO and EVP_f_md

kdf:
hkdf.c                 Demonstration of HMAC based key derivation
pbkdf2.c               Demonstration of PBKDF2 password based key derivation
scrypt.c               Demonstration of SCRYPT password based key derivation

mac:
gmac.c                 Demonstration of GMAC message authentication
poly1305.c             Demonstration of Poly1305-AES message authentication
siphash.c              Demonstration of SIPHASH message authentication

pkey:
EVP_PKEY_EC_keygen.c           Generate an EC key.
EVP_PKEY_RSA_keygen.c          Generate an RSA key.
EVP_PKEY_DSA_keygen.c          Generate a DSA key.
EVP_PKEY_DSA_paramgen.c        Generate a DSA param key.
EVP_PKEY_DSA_paramvalidate.c   Validate a DSA param key.
EVP_PKEY_DSA_paramfromdata.c   Load a DSA param key using raw data.

smime:

pkcs12:
pkread.c               Print out a description of a PKCS12 file.
pkwrite.c              Add a password to an existing PKCS12 file.

signature:
EVP_Signature_demo.c   Compute and verify a signature from multiple buffers
rsa_pss_direct.c       Compute and verify an RSA-PSS signature from a hash
rsa_pss_hash.c         Compute and verify an RSA-PSS signature over a buffer