libcrypto
OpenSSL's core cryptography library, which programs call to encrypt, hash, sign and generate keys.
In more detail
OpenSSL ships two libraries: libssl for the TLS protocol and libcrypto for the algorithms underneath. Its EVP functions, the high-level envelope interface, let code use any cipher through one set of calls, such as EVP_CipherInit_ex2 to set up AES-GCM or ChaCha20-Poly1305. Web servers, the openssl command and many language runtimes rely on it, so a flaw in libcrypto affects a large share of the internet.
Example
aead.py wraps EVP_CipherInit_ex2 and friends in libcryptoRelated terms
- OpenSSL — A widely used toolkit and library for cryptography and TLS, including the openssl command-line tool.
- AES-GCM — AES in Galois/Counter Mode: the most widely used way to encrypt data so that it stays secret and any tampering is detected.
- ChaCha20-Poly1305 — An authenticated encryption scheme that pairs the ChaCha20 stream cipher with the Poly1305 authenticator, and runs fast even on devices without AES hardware.
- AEAD — Authenticated encryption with associated data: encryption that keeps data secret and also detects any change to it or to an attached readable header.
Taught in
- Symmetric Encryption: AES-GCM & ChaCha20 — Cybersecurity Fundamentals, GRC & Cryptography
- Post-Quantum Cryptography & Key Lifecycles — Cybersecurity Fundamentals, GRC & Cryptography