openssl/demos
Dimitri Papadopoulos e22ebb893e Bad function definition
void f() should probably be void f(void)

Found by running the checkpatch.pl Linux script to enforce coding style.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21468)
2023-09-11 10:15:30 +02:00
..
bio Copyright year updates 2023-09-07 09:59:15 +01:00
certs
cipher Copyright year updates 2023-09-07 09:59:15 +01:00
cms Copyright year updates 2023-09-07 09:59:15 +01:00
digest "foo * bar" should be "foo *bar" 2023-09-11 10:15:30 +02:00
encode Copyright year updates 2023-09-07 09:59:15 +01:00
encrypt demo: Fix makefile target 2023-03-15 13:58:01 +11:00
guide Return NULL if we fail to create a BIO in the demos/quicserver 2023-09-08 15:44:37 +01:00
kdf Copyright year updates 2023-09-07 09:59:15 +01:00
keyexch Copyright year updates 2023-09-07 09:59:15 +01:00
mac Copyright year updates 2023-09-07 09:59:15 +01:00
pkcs12 Copyright year updates 2023-09-07 09:59:15 +01:00
pkey Copyright year updates 2023-09-07 09:59:15 +01:00
signature Copyright year updates 2023-09-07 09:59:15 +01:00
smime Copyright year updates 2023-09-07 09:59:15 +01:00
sslecho Bad function definition 2023-09-11 10:15:30 +02:00
README.txt Add ED25519 Signature demo. 2023-09-01 10:09:56 +01: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

encrypt:
rsa_encrypt.c          Encrypt and decrypt data using an RSA keypair.

encode:
rsa_encode.c           Encode and decode PEM-encoded RSA keys

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_EC_Signature_demo.c   Compute and verify an EC signature.
EVP_DSA_Signature_demo.c  Compute and verify a DSA signature.
EVP_ED_Signature_demo.c   Compute and verify an ED25519 signature.
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

sslecho:
main.c                 Simple SSL echo client/server.