TLS/SSL and crypto library https://www.openssl.org
  • C 74.1%
  • Perl 12%
  • Raku 10.9%
  • Prolog 1%
  • Assembly 0.6%
  • Other 1.3%
Find a file
007bsd d099e33e57 aes_wrap: prevent crash on update without a key
EVP_CipherInit_ex2 with a NULL key followed by EVP_CipherUpdate
on AES-WRAP/WRAP-PAD/WRAP-INV ciphers dereferenced an uninitialised
function pointer because aes_wrap_init installs ctx->block only
when a key is supplied. aes_wrap_cipher_internal had no guard
before dispatching.

Track key state in ctx->key_set, matching OCB/CCM/GCM/Poly1305,
and refuse update if no key has been installed.

Added a regression test covering AES-256-WRAP, AES-256-WRAP-PAD
and AES-256-WRAP-INV.

CLA: trivial

Fixes: ca392b2943 "Add aes_wrap cipher to providers"

Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
MergeDate: Wed Jun  3 11:52:05 2026
(Merged from https://github.com/openssl/openssl/pull/31292)
2026-06-03 13:51:57 +02:00
.ctags.d Copyright year updates 2026-03-10 14:37:52 +00:00
.github Limit job count on compiler zoo builds 2026-05-04 11:33:28 +02:00
apps Remove unused crl_dir setting from config files 2026-06-03 13:36:56 +02:00
cloudflare-quiche@7ab6a55cfe
Configurations Configurations/unix-Makefile.tmpl: make cleanup faster 2026-05-21 11:02:37 +02:00
crypto Provide ASN1_STRING_new_not_owned() 2026-06-03 13:41:32 +02:00
demos Fix broken hex data by reformatting 2026-06-03 09:46:03 +02:00
dev Point to new docs location 2025-04-15 15:56:16 +01:00
doc doc: Clarify SSL_CERT_DIR uses semicolon separator on Windows 2026-06-03 13:44:30 +02:00
exporters Work around "Use of uninitialized value..." in mkinstallvars.pl 2026-04-14 10:54:05 +02:00
external/perl Updated broken documentation links in various files 2026-04-03 17:17:33 +02:00
fuzz Fix broken hex data by reformatting 2026-06-03 09:46:03 +02:00
gost-engine@74b1f4fddb update to latest version of gost-engine 2025-04-09 14:04:09 -04:00
include Provide ASN1_STRING_new_not_owned() 2026-06-03 13:41:32 +02:00
krb5@784c38f50e Update krb5 to latest master to pick up CVE fixes 2024-08-14 17:57:43 +02:00
ms Workaround Uplink compilation for MINGW 32bit 2026-04-28 18:02:08 +02:00
oqs-provider@c5fb439e4f Update oqs-provider to current, which support opaque asn1 strings 2026-02-25 11:13:16 +01:00
os-dep Add an Apple privacy info file for OpenSSL 2024-04-26 14:01:36 +02:00
pkcs11-provider@663dea335c Update pkcs11-provider submodule (663dea3) 2025-10-03 13:09:42 -04:00
providers aes_wrap: prevent crash on update without a key 2026-06-03 13:51:57 +02:00
pyca-cryptography@0e855f9526 update pyca-cryptography to latest master 2025-04-01 09:23:02 -04:00
python-ecdsa@4096fa0171 update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
ssl quic: avoid one-byte over-read of conn close reason in copy_tcause 2026-06-03 13:39:43 +02:00
test aes_wrap: prevent crash on update without a key 2026-06-03 13:51:57 +02:00
tlsfuzzer@61f45d9701 update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
tlslite-ng@77ef321dde update tlsfuzzer to new version 2024-10-21 11:40:16 +01:00
util Provide ASN1_STRING_new_not_owned() 2026-06-03 13:41:32 +02:00
VMS Remove unused crl_dir setting from config files 2026-06-03 13:36:56 +02:00
wycheproof@aca4706625 update wycheproof submodule to latest master 2025-04-01 09:23:02 -04:00
.clang-format Remove remaining RAND_DRBG. 2026-02-17 09:09:01 -05:00
.codespellrc s_client and s_server options for ECH 2026-02-20 16:40:25 +00:00
.git-blame-ignore-revs add 4.0 clang-format diff to .git-blame-ignore-revs 2025-12-09 01:38:27 -07:00
.gitattributes More polish and renamed codec tests 2025-02-14 10:50:58 +01:00
.gitignore Ignore memfail test binaries 2026-05-21 11:05:19 +02:00
.gitmodules the rpki-client external test should use relase version not a master branch on github 2025-08-09 09:38:39 -04:00
.pre-commit-config.yaml Add clang-format file exclusions for generated files related to OBJ 2026-01-13 11:13:33 +01:00
ACKNOWLEDGEMENTS.md
AUTHORS.md EVP_DecodeUpdate() should not produce padding zeros to the decoded output (Fixes #26677) 2025-02-27 17:38:57 +00:00
build.info FIPS: Add HMAC key size compliance check to the MAC legacy bridge. 2026-04-28 07:13:23 +00:00
CHANGES.md Provide ASN1_STRING_new_not_owned() 2026-06-03 13:41:32 +02:00
CODE-OF-CONDUCT.md
config
config.com
configdata.pm.in feat: Disabled features are generated during configure automatically 2026-03-13 16:52:12 +01:00
Configure Configure: update $apitable with the recent versions 2026-05-19 11:33:43 +02:00
CONTRIBUTING.md Doc: Add additional information to the contributing page. 2026-03-13 09:28:17 +01:00
funding.json Fix a funding.json error 2025-01-07 17:18:36 +00:00
HOWTO.md move contents of HACKING.md to a doc/HOWTO 2026-04-27 06:14:19 +00:00
INSTALL.md INSTALL.md: mention that no-atexit has no effect 2026-04-14 10:50:31 +02:00
LICENSE.txt
NEWS.md CHANGES.md, NEWS.md: updates for 4.0.0 final release 2026-04-26 15:16:53 +02:00
NOTES-ANDROID.md
NOTES-C99.md Add unsupported features in NOTES-C99.md: complex.h and variable length array 2025-09-23 10:36:15 +02:00
NOTES-DJGPP.md
NOTES-NONSTOP.md NOTES-NONSTOP.md: remove the "Linking and Loading Considerations" section 2026-04-14 10:50:31 +02:00
NOTES-PERL.md
NOTES-POSIX.md Add installation documentation and notes on ANSI C and POSIX 2024-05-22 09:59:32 +02:00
NOTES-UNIX.md
NOTES-VALGRIND.md Update NOTES-VALGRIND.md to document valgrind compaints on reachable 2026-02-11 14:40:48 -05:00
NOTES-VMS.md
NOTES-WINDOWS.md Add WSL build instructions to NOTES-WINDOWS.md 2026-03-13 11:31:06 -04:00
README-FIPS.md fix: update remaining 3.5.0 references to 3.6.0 in README-FIPS.md 2026-02-13 15:55:07 +01:00
README-PROVIDERS.md Point to new docs location 2025-04-15 15:56:16 +01:00
README-QUIC.md Fix typos and whitespace 2025-08-30 09:38:01 -04:00
README.md Copyright year updates 2026-03-10 14:37:52 +00:00
SUPPORT.md
VERSION.dat Prepare for 4.1 2026-03-10 14:39:55 +00:00

Welcome to the OpenSSL Project

openssl logo

github actions ci badge Nightly OS Zoo ci badge Provider Compatibility Quic Interop Daily checks LFX Health Score

OpenSSL is a robust, commercial-grade, full-featured Open Source Toolkit for the Transport Layer Security (TLS, formerly SSL), Datagram TLS (DTLS), and QUIC protocols.

The protocol implementations are based on a full-strength general purpose cryptographic library, which can also be used stand-alone. Also included is a cryptographic module validated to conform with FIPS standards.

OpenSSL is descended from the SSLeay library developed by Eric A. Young and Tim J. Hudson.

The official Home Page of the OpenSSL Project is www.openssl.org.

Table of Contents

Overview

The OpenSSL toolkit includes:

  • libssl an implementation of all TLS protocol versions up to TLSv1.3 (RFC 8446), DTLS protocol versions up to DTLSv1.2 (RFC 6347) and the QUIC version 1 protocol (RFC 9000).

  • libcrypto a full-strength general purpose cryptographic library. It constitutes the basis of the TLS implementation, but can also be used independently.

  • openssl the OpenSSL command line tool, a swiss army knife for cryptographic tasks, testing and analyzing. It can be used for

    • creation of key parameters
    • creation of X.509 certificates, CSRs and CRLs
    • calculation of message digests
    • encryption and decryption
    • SSL/TLS/DTLS and client and server tests
    • QUIC client tests
    • handling of S/MIME signed or encrypted mail
    • and more...

Download

For Production Use

Source code tarballs of the official releases can be downloaded from openssl-library.org/source/. The OpenSSL project does not distribute the toolkit in binary form.

However, for a large variety of operating systems precompiled versions of the OpenSSL toolkit are available. In particular, on Linux and other Unix operating systems, it is normally recommended to link against the precompiled shared libraries provided by the distributor or vendor.

We also maintain a list of third parties that produce OpenSSL binaries for various Operating Systems (including Windows) on the Binaries page on our wiki.

For Testing and Development

Although testing and development could in theory also be done using the source tarballs, having a local copy of the git repository with the entire project history gives you much more insight into the code base.

The main OpenSSL Git repository is private. There is a public GitHub mirror of it at github.com/openssl/openssl, which is updated automatically from the former on every commit.

A local copy of the Git repository can be obtained by cloning it from the GitHub mirror using

git clone https://github.com/openssl/openssl.git

If you intend to contribute to OpenSSL, either to fix bugs or contribute new features, you need to fork the GitHub mirror and clone your public fork instead.

git clone https://github.com/yourname/openssl.git

This is necessary because all development of OpenSSL nowadays is done via GitHub pull requests. For more details, see Contributing.

Build and Install

After obtaining the Source, have a look at the INSTALL file for detailed instructions about building and installing OpenSSL. For some platforms, the installation instructions are amended by a platform specific document.

Specific notes on upgrading to OpenSSL 3.x from previous versions can be found in the ossl-guide-migration(7ossl) manual page.

Documentation

README Files

There are some README.md files in the top level of the source distribution containing additional information on specific topics.

The OpenSSL Guide

There are some tutorial and introductory pages on some important OpenSSL topics within the OpenSSL Guide.

Manual Pages

The manual pages for the master branch and all current stable releases are available online.

Demos

There are numerous source code demos for using various OpenSSL capabilities in the demos subfolder.

Wiki

There is a GitHub Wiki which is currently not very active.

License

OpenSSL is licensed under the Apache License 2.0, which means that you are free to get and use it for commercial and non-commercial purposes as long as you fulfill its conditions.

See the LICENSE.txt file for more details.

Support

There are various ways to get in touch. The correct channel depends on your requirement. See the SUPPORT file for more details.

Contributing

If you are interested and willing to contribute to the OpenSSL project, please take a look at the CONTRIBUTING file.

Legalities

A number of nations restrict the use or export of cryptography. If you are potentially subject to such restrictions, you should seek legal advice before attempting to develop or distribute cryptographic code.

Copyright

Copyright (c) 1998-2026 The OpenSSL Project Authors

Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson

All rights reserved.