# phpman > man > MIGRATION_GUIDE(7SSL)

[MIGRATION_GUIDE(7SSL)](https://www.chedong.com/phpMan.php/man/MIGRATIONGUIDE/7SSL/markdown)                          OpenSSL                         [MIGRATION_GUIDE(7SSL)](https://www.chedong.com/phpMan.php/man/MIGRATIONGUIDE/7SSL/markdown)



## NAME
       migration_guide - OpenSSL migration guide

## SYNOPSIS
       See the individual manual pages for details.

## DESCRIPTION
       This guide details the changes required to migrate to new versions of OpenSSL.  Currently
       this covers OpenSSL 3.0. For earlier versions refer to
       <<https://github.com/openssl/openssl/blob/master/CHANGES.md>>.  For an overview of some of the
       key concepts introduced in OpenSSL 3.0 see [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).

### OPENSSL 3.0
### Main Changes from OpenSSL 1.1.1
       _Major_ _Release_

       OpenSSL 3.0 is a major release and consequently any application that currently uses an older
       version of OpenSSL will at the very least need to be recompiled in order to work with the new
       version. It is the intention that the large majority of applications will work unchanged with
       OpenSSL 3.0 if those applications previously worked with OpenSSL 1.1.1. However this is not
       guaranteed and some changes may be required in some cases. Changes may also be required if
       applications need to take advantage of some of the new features available in OpenSSL 3.0 such
       as the availability of the FIPS module.

       _License_ _Change_

       In previous versions, OpenSSL was licensed under the dual OpenSSL and SSLeay licenses
       <<https://www.openssl.org/source/license-openssl-ssleay.txt>> (both licenses apply). From
       OpenSSL 3.0 this is replaced by the Apache License v2 <<https://www.openssl.org/source/apache>-
       license-2.0.txt>.

       _Providers_ _and_ _FIPS_ _support_

       One of the key changes from OpenSSL 1.1.1 is the introduction of the Provider concept.
       Providers collect together and make available algorithm implementations.  With OpenSSL 3.0 it
       is possible to specify, either programmatically or via a config file, which providers you
       want to use for any given application.  OpenSSL 3.0 comes with 5 different providers as
       standard. Over time third parties may distribute additional providers that can be plugged
       into OpenSSL.  All algorithm implementations available via providers are accessed through the
       "high level" APIs (for example those functions prefixed with "EVP"). They cannot be accessed
       using the "Low Level APIs".

       One of the standard providers available is the FIPS provider. This makes available FIPS
       validated cryptographic algorithms.  The FIPS provider is disabled by default and needs to be
       enabled explicitly at configuration time using the "enable-fips" option. If it is enabled,
       the FIPS provider gets built and installed in addition to the other standard providers. No
       separate installation procedure is necessary.  There is however a dedicated "install_fips"
       make target, which serves the special purpose of installing only the FIPS provider into an
       existing OpenSSL installation.

       Not all algorithms may be available for the application at a particular moment.  If the
       application code uses any digest or cipher algorithm via the EVP interface, the application
       should verify the result of the **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown), **EVP**___**EncryptInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), and
       **EVP**___**[DigestInit**(3)](https://www.chedong.com/phpMan.php/man/DigestInit/3/markdown) functions. In case when the requested algorithm is not available, these
       functions will fail.

       See also "Legacy Algorithms" for information on the legacy provider.

       See also "Completing the installation of the FIPS Module" and "Using the FIPS Module in
       applications".

       _Low_ _Level_ _APIs_

       OpenSSL has historically provided two sets of APIs for invoking cryptographic algorithms: the
       "high level" APIs (such as the "EVP" APIs) and the "low level" APIs. The high level APIs are
       typically designed to work across all algorithm types. The "low level" APIs are targeted at a
       specific algorithm implementation.  For example, the EVP APIs provide the functions
       **EVP**___**EncryptInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **EVP**___**[EncryptUpdate**(3)](https://www.chedong.com/phpMan.php/man/EncryptUpdate/3/markdown) and **EVP**___**[EncryptFinal**(3)](https://www.chedong.com/phpMan.php/man/EncryptFinal/3/markdown) to perform symmetric
       encryption. Those functions can be used with the algorithms AES, CHACHA, 3DES etc.  On the
       other hand, to do AES encryption using the low level APIs you would have to call AES specific
       functions such as **AES**___**set**___**encrypt**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown), **AES**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown), and so on. The functions for 3DES
       are different.  Use of the low level APIs has been informally discouraged by the OpenSSL
       development team for a long time. However in OpenSSL 3.0 this is made more formal. All such
       low level APIs have been deprecated. You may still use them in your applications, but you may
       start to see deprecation warnings during compilation (dependent on compiler support for
       this). Deprecated APIs may be removed from future versions of OpenSSL so you are strongly
       encouraged to update your code to use the high level APIs instead.

       This is described in more detail in "Deprecation of Low Level Functions"

       _Legacy_ _Algorithms_

       Some cryptographic algorithms such as **MD2** and **DES** that were available via the EVP APIs are
       now considered legacy and their use is strongly discouraged.  These legacy EVP algorithms are
       still available in OpenSSL 3.0 but not by default. If you want to use them then you must load
       the legacy provider.  This can be as simple as a config file change, or can be done
       programmatically.  See **OSSL**___**[PROVIDER-legacy**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-legacy/7/markdown) for a complete list of algorithms.
       Applications using the EVP APIs to access these algorithms should instead use more modern
       algorithms. If that is not possible then these applications should ensure that the legacy
       provider has been loaded. This can be achieved either programmatically or via configuration.
       See [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown) man page for more information about providers.

       _Engines_ _and_ _"METHOD"_ _APIs_

       The refactoring to support Providers conflicts internally with the APIs used to support
       engines, including the ENGINE API and any function that creates or modifies custom "METHODS"
       (for example **EVP**___**MD**___**meth**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **EVP**___**CIPHER**___**meth**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **EVP**___**PKEY**___**meth**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown),
       **RSA**___**meth**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **EC**___**KEY**___**METHOD**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), etc.). These functions are being deprecated in OpenSSL
       3.0, and users of these APIs should know that their use can likely bypass provider selection
       and configuration, with unintended consequences.  This is particularly relevant for
       applications written to use the OpenSSL 3.0 FIPS module, as detailed below. Authors and
       maintainers of external engines are strongly encouraged to refactor their code transforming
       engines into providers using the new Provider API and avoiding deprecated methods.

       _Support_ _of_ _legacy_ _engines_

       If openssl is not built without engine support or deprecated API support, engines will still
       work. However, their applicability will be limited.

       New algorithms provided via engines will still work.

       Engine-backed keys can be loaded via custom **OSSL**___**STORE** implementation.  In this case the
       **EVP**___**PKEY** objects created via **ENGINE**___**load**___**private**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown) will be concidered legacy and will
       continue to work.

       To ensure the future compatibility, the engines should be turned to providers.  To prefer the
       provider-based hardware offload, you can specify the default properties to prefer your
       provider.

       _Versioning_ _Scheme_

       The OpenSSL versioning scheme has changed with the OpenSSL 3.0 release. The new versioning
       scheme has this format:

       MAJOR.MINOR.PATCH

       For OpenSSL 1.1.1 and below, different patch levels were indicated by a letter at the end of
       the release version number. This will no longer be used and instead the patch level is
       indicated by the final number in the version. A change in the second (MINOR) number indicates
       that new features may have been added. OpenSSL versions with the same major number are API
       and ABI compatible.  If the major number changes then API and ABI compatibility is not
       guaranteed.

       For more information, see **OpenSSL**___**[version**(3)](https://www.chedong.com/phpMan.php/man/version/3/markdown).

       _Other_ _major_ _new_ _features_

       Certificate Management Protocol (CMP, RFC 4210)

       This also covers CRMF (RFC 4211) and HTTP transfer (RFC 6712) See [**openssl-cmp**(1)](https://www.chedong.com/phpMan.php/man/openssl-cmp/1/markdown) and
       **OSSL**___**CMP**___**exec**___**[certreq**(3)](https://www.chedong.com/phpMan.php/man/certreq/3/markdown) as starting points.

       HTTP(S) client

       A proper HTTP(S) client that supports GET and POST, redirection, plain and ASN.1-encoded
       contents, proxies, and timeouts.

       Key Derivation Function API (EVP_KDF)

       This simplifies the process of adding new KDF and PRF implementations.

       Previously KDF algorithms had been shoe-horned into using the EVP_PKEY object which was not a
       logical mapping.  Existing applications that use KDF algorithms using EVP_PKEY (scrypt, TLS1
       PRF and HKDF) may be slower as they use an EVP_KDF bridge internally.  All new applications
       should use the new **EVP**___**[KDF**(3)](https://www.chedong.com/phpMan.php/man/KDF/3/markdown) interface.  See also "Key Derivation Function (KDF)" in
       **OSSL**___**[PROVIDER-default**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-default/7/markdown) and "Key Derivation Function (KDF)" in **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown).

       Message Authentication Code API (EVP_MAC)

       This simplifies the process of adding MAC implementations.

       This includes a generic EVP_PKEY to EVP_MAC bridge, to facilitate the continued use of MACs
       through raw private keys in functionality such as **EVP**___**[DigestSign**(3)](https://www.chedong.com/phpMan.php/man/DigestSign/3/markdown) and **EVP**___**[DigestVerify**(3)](https://www.chedong.com/phpMan.php/man/DigestVerify/3/markdown).

       All new applications should use the new **EVP**___**[MAC**(3)](https://www.chedong.com/phpMan.php/man/MAC/3/markdown) interface.  See also "Message
       Authentication Code (MAC)" in **OSSL**___**[PROVIDER-default**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-default/7/markdown) and "Message Authentication Code
       (MAC)" in **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown).

       Support for Linux Kernel TLS

       In order to use KTLS, support for it must be compiled in using the "enable-ktls"
       configuration option. It must also be enabled at run time using the **SSL**___**OP**___**ENABLE**___**KTLS**
       option.

       New Algorithms

       •   KDF algorithms "SINGLE STEP" and "SSH"

           See **EVP**___**[KDF-SS**(7)](https://www.chedong.com/phpMan.php/man/KDF-SS/7/markdown) and **EVP**___**[KDF-SSHKDF**(7)](https://www.chedong.com/phpMan.php/man/KDF-SSHKDF/7/markdown)

       •   MAC Algorithms "GMAC" and "KMAC"

           See **EVP**___**[MAC-GMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-GMAC/7/markdown) and **EVP**___**[MAC-KMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-KMAC/7/markdown).

       •   KEM Algorithm "RSASVE"

           See **EVP**___**[KEM-RSA**(7)](https://www.chedong.com/phpMan.php/man/KEM-RSA/7/markdown).

       •   Cipher Algorithm "AES-SIV"

           See "SIV Mode" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown).

       •   AES Key Wrap inverse ciphers supported by EVP layer.

           The inverse ciphers use AES decryption for wrapping, and AES encryption for unwrapping.
           The algorithms are: "AES-128-WRAP-INV", "AES-192-WRAP-INV", "AES-256-WRAP-INV",
           "AES-128-WRAP-PAD-INV", "AES-192-WRAP-PAD-INV" and "AES-256-WRAP-PAD-INV".

       •   CTS ciphers added to EVP layer.

           The algorithms are "AES-128-CBC-CTS", "AES-192-CBC-CTS", "AES-256-CBC-CTS",
           "CAMELLIA-128-CBC-CTS", "CAMELLIA-192-CBC-CTS" and "CAMELLIA-256-CBC-CTS".  CS1, CS2 and
           CS3 variants are supported.

       CMS and PKCS#7 updates

       •   Added CAdES-BES signature verification support.

       •   Added CAdES-BES signature scheme and attributes support (RFC 5126) to CMS API.

       •   Added AuthEnvelopedData content type structure (RFC 5083) using AES_GCM

           This uses the AES-GCM parameter (RFC 5084) for the Cryptographic Message Syntax.  Its
           purpose is to support encryption and decryption of a digital envelope that is both
           authenticated and encrypted using AES GCM mode.

       •   **PKCS7**___**get**___**octet**___**[string**(3)](https://www.chedong.com/phpMan.php/man/string/3/markdown) and **PKCS7**___**type**___**is**___**[other**(3)](https://www.chedong.com/phpMan.php/man/other/3/markdown) were made public.

       PKCS#12 API updates

       The default algorithms for pkcs12 creation with the **PKCS12**___**create()** function were changed to
       more modern PBKDF2 and AES based algorithms. The default MAC iteration count was changed to
       PKCS12_DEFAULT_ITER to make it equal with the password-based encryption iteration count. The
       default digest algorithm for the MAC computation was changed to SHA-256. The pkcs12
       application now supports -legacy option that restores the previous default algorithms to
       support interoperability with legacy systems.

       Added enhanced PKCS#12 APIs which accept a library context **OSSL**___**LIB**___**CTX** and (where relevant)
       a property query. Other APIs which handle PKCS#7 and PKCS#8 objects have also been enhanced
       where required. This includes:

       **PKCS12**___**add**___**key**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**add**___**safe**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**add**___**safes**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**create**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS12**___**decrypt**___**skey**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**init**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**item**___**decrypt**___**d2i**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS12**___**item**___**i2d**___**encrypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**key**___**gen**___**asc**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**key**___**gen**___**uni**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS12**___**key**___**gen**___**utf8**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**pack**___**p7encdata**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**pbe**___**crypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS12**___**PBE**___**keyivgen**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS12**___**SAFEBAG**___**create**___**pkcs8**___**encrypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS5**___**pbe2**___**set**___**iv**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS5**___**pbe**___**set0**___**algor**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS5**___**pbe**___**set**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS5**___**pbkdf2**___**set**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS5**___**v2**___**PBE**___**keyivgen**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS5**___**v2**___**scrypt**___**keyivgen**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown),
       **PKCS8**___**decrypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS8**___**encrypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **PKCS8**___**set0**___**pbe**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown).

       As part of this change the EVP_PBE_xxx APIs can also accept a library context and property
       query and will call an extended version of the key/IV derivation function which supports
       these parameters. This includes **EVP**___**PBE**___**CipherInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **EVP**___**PBE**___**find**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown) and
       **EVP**___**PBE**___**scrypt**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown).

       Windows thread synchronization changes

       Windows thread synchronization uses read/write primitives (SRWLock) when supported by the OS,
       otherwise CriticalSection continues to be used.

       Trace API

       A new generic trace API has been added which provides support for enabling instrumentation
       through trace output. This feature is mainly intended as an aid for developers and is
       disabled by default. To utilize it, OpenSSL needs to be configured with the "enable-trace"
       option.

       If the tracing API is enabled, the application can activate trace output by registering BIOs
       as trace channels for a number of tracing and debugging categories. See
       **OSSL**___**trace**___**[enabled**(3)](https://www.chedong.com/phpMan.php/man/enabled/3/markdown).

       Key validation updates

       **EVP**___**PKEY**___**public**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown) and **EVP**___**PKEY**___**param**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown) now work for more key types. This
       includes RSA, DSA, ED25519, X25519, ED448 and X448.  Previously (in 1.1.1) they would return
       -2. For key types that do not have parameters then **EVP**___**PKEY**___**param**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown) will always return
       1.

       _Other_ _notable_ _deprecations_ _and_ _changes_

       The function code part of an OpenSSL error code is no longer relevant

       This code is now always set to zero. Related functions are deprecated.

       STACK and HASH macros have been cleaned up

       The type-safe wrappers are declared everywhere and implemented once.  See **DEFINE**___**STACK**___**[OF**(3)](https://www.chedong.com/phpMan.php/man/OF/3/markdown)
       and **DECLARE**___**LHASH**___**[OF**(3)](https://www.chedong.com/phpMan.php/man/OF/3/markdown).

       The RAND_DRBG subsystem has been removed

       The new **EVP**___**[RAND**(3)](https://www.chedong.com/phpMan.php/man/RAND/3/markdown) is a partial replacement: the DRBG callback framework is absent. The
       RAND_DRBG API did not fit well into the new provider concept as implemented by EVP_RAND and
       EVP_RAND_CTX.

       Removed **FIPS**___**mode()** and **FIPS**___**mode**___**set()**

       These functions are legacy APIs that are not applicable to the new provider model.
       Applications should instead use **EVP**___**default**___**properties**___**is**___**fips**___**[enabled**(3)](https://www.chedong.com/phpMan.php/man/enabled/3/markdown) and
       **EVP**___**default**___**properties**___**enable**___**[fips**(3)](https://www.chedong.com/phpMan.php/man/fips/3/markdown).

       Key generation is slower

       The Miller-Rabin test now uses 64 rounds, which is used for all prime generation, including
       RSA key generation. This affects the time for larger keys sizes.

       The default key generation method for the regular 2-prime RSA keys was changed to the FIPS
       186-4 B.3.6 method (Generation of Probable Primes with Conditions Based on Auxiliary Probable
       Primes). This method is slower than the original method.

       Change PBKDF2 to conform to SP800-132 instead of the older PKCS5 RFC2898

       This checks that the salt length is at least 128 bits, the derived key length is at least 112
       bits, and that the iteration count is at least 1000.  For backwards compatibility these
       checks are disabled by default in the default provider, but are enabled by default in the
       fips provider.

       To enable or disable the checks see **OSSL**___**KDF**___**PARAM**___**PKCS5** in **EVP**___**[KDF-PBKDF2**(7)](https://www.chedong.com/phpMan.php/man/KDF-PBKDF2/7/markdown). The parameter
       can be set using **EVP**___**KDF**___**[derive**(3)](https://www.chedong.com/phpMan.php/man/derive/3/markdown).

       Enforce a minimum DH modulus size of 512 bits

       Smaller sizes now result in an error.

       SM2 key changes

       EC EVP_PKEYs with the SM2 curve have been reworked to automatically become EVP_PKEY_SM2
       rather than EVP_PKEY_EC.

       Unlike in previous OpenSSL versions, this means that applications cannot call
       "EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2)" to get SM2 computations.

       Parameter and key generation is also reworked to make it possible to generate EVP_PKEY_SM2
       parameters and keys. Applications must now generate SM2 keys directly and must not create an
       EVP_PKEY_EC key first. It is no longer possible to import an SM2 key with domain parameters
       other than the SM2 elliptic curve ones.

       Validation of SM2 keys has been separated from the validation of regular EC keys, allowing to
       improve the SM2 validation process to reject loaded private keys that are not conforming to
       the SM2 ISO standard.  In particular, a private scalar _k_ outside the range _1_ _<=_ _k_ _<_ _n-1_ is
       now correctly rejected.

       **EVP**___**PKEY**___**set**___**alias**___**type()** method has been removed

       This function made a **EVP**___**PKEY** object mutable after it had been set up. In OpenSSL 3.0 it was
       decided that a provided key should not be able to change its type, so this function has been
       removed.

       Functions that return an internal key should be treated as read only

       Functions such as **EVP**___**PKEY**___**get0**___**[RSA**(3)](https://www.chedong.com/phpMan.php/man/RSA/3/markdown) behave slightly differently in OpenSSL 3.0. Previously
       they returned a pointer to the low-level key used internally by libcrypto. From OpenSSL 3.0
       this key may now be held in a provider. Calling these functions will only return a handle on
       the internal key where the EVP_PKEY was constructed using this key in the first place, for
       example using a function or macro such as **EVP**___**PKEY**___**assign**___**[RSA**(3)](https://www.chedong.com/phpMan.php/man/RSA/3/markdown), **EVP**___**PKEY**___**set1**___**[RSA**(3)](https://www.chedong.com/phpMan.php/man/RSA/3/markdown), etc.
       Where the EVP_PKEY holds a provider managed key, then these functions now return a cached
       copy of the key. Changes to the internal provider key that take place after the first time
       the cached key is accessed will not be reflected back in the cached copy. Similarly any
       changes made to the cached copy by application code will not be reflected back in the
       internal provider key.

       For the above reasons the keys returned from these functions should typically be treated as
       read-only. To emphasise this the value returned from **EVP**___**PKEY**___**get0**___**[RSA**(3)](https://www.chedong.com/phpMan.php/man/RSA/3/markdown),
       **EVP**___**PKEY**___**get0**___**[DSA**(3)](https://www.chedong.com/phpMan.php/man/DSA/3/markdown), **EVP**___**PKEY**___**get0**___**EC**___**[KEY**(3)](https://www.chedong.com/phpMan.php/man/KEY/3/markdown) and **EVP**___**PKEY**___**get0**___**[DH**(3)](https://www.chedong.com/phpMan.php/man/DH/3/markdown) have been made const.
       This may break some existing code.  Applications broken by this change should be modified.
       The preferred solution is to refactor the code to avoid the use of these deprecated
       functions. Failing this the code should be modified to use a const pointer instead.  The
       **EVP**___**PKEY**___**get1**___**[RSA**(3)](https://www.chedong.com/phpMan.php/man/RSA/3/markdown), **EVP**___**PKEY**___**get1**___**[DSA**(3)](https://www.chedong.com/phpMan.php/man/DSA/3/markdown), **EVP**___**PKEY**___**get1**___**EC**___**[KEY**(3)](https://www.chedong.com/phpMan.php/man/KEY/3/markdown) and **EVP**___**PKEY**___**get1**___**[DH**(3)](https://www.chedong.com/phpMan.php/man/DH/3/markdown)
       functions continue to return a non-const pointer to enable them to be "freed". However they
       should also be treated as read-only.

       The public key check has moved from **EVP**___**PKEY**___**derive()** to **EVP**___**PKEY**___**derive**___**set**___**peer()**

       This may mean result in an error in **EVP**___**PKEY**___**derive**___**set**___**[peer**(3)](https://www.chedong.com/phpMan.php/man/peer/3/markdown) rather than during
       **EVP**___**PKEY**___**[derive**(3)](https://www.chedong.com/phpMan.php/man/derive/3/markdown).  To disable this check use EVP_PKEY_derive_set_peer_ex(dh, peer, 0).

       The print format has cosmetic changes for some functions

       The output from numerous "printing" functions such as **X509**___**signature**___**[print**(3)](https://www.chedong.com/phpMan.php/man/print/3/markdown),
       **X509**___**print**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **X509**___**CRL**___**print**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), and other similar functions has been amended such
       that there may be cosmetic differences between the output observed in 1.1.1 and 3.0. This
       also applies to the **-text** output from the **openssl** **x509** and **openssl** **crl** applications.

       Interactive mode from the **openssl** program has been removed

       From now on, running it without arguments is equivalent to **openssl** **help**.

       The error return values from some control calls (ctrl) have changed

       One significant change is that controls which used to return -2 for invalid inputs, now
       return -1 indicating a generic error condition instead.

       DH and DHX key types have different settable parameters

       Previously (in 1.1.1) these conflicting parameters were allowed, but will now result in
       errors. See **EVP**___**[PKEY-DH**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DH/7/markdown) for further details. This affects the behaviour of
       [**openssl-genpkey**(1)](https://www.chedong.com/phpMan.php/man/openssl-genpkey/1/markdown) for DH parameter generation.

       **EVP**___**CIPHER**___**CTX**___**set**___**flags()** ordering change

       If using a cipher from a provider the **EVP**___**CIPH**___**FLAG**___**LENGTH**___**BITS** flag can only be set **after**
       the cipher has been assigned to the cipher context.  See "FLAGS" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown) for
       more information.

       Validation of operation context parameters

       Due to move of the implementation of cryptographic operations to the providers, validation of
       various operation parameters can be postponed until the actual operation is executed where
       previously it happened immediately when an operation parameter was set.

       For example when setting an unsupported curve with **EVP**___**PKEY**___**CTX**___**set**___**ec**___**paramgen**___**curve**___**nid()**
       this function call will not fail but later keygen operations with the EVP_PKEY_CTX will fail.

       Removal of function code from the error codes

       The function code part of the error code is now always set to 0. For that reason the
       **ERR**___**GET**___**FUNC()** macro was removed. Applications must resolve the error codes only using the
       library number and the reason code.

### Installation and Compilation
       Please refer to the INSTALL.md file in the top of the distribution for instructions on how to
       build and install OpenSSL 3.0. Please also refer to the various platform specific NOTES files
       for your specific platform.

### Upgrading from OpenSSL 1.1.1
       Upgrading to OpenSSL 3.0 from OpenSSL 1.1.1 should be relatively straight forward in most
       cases. The most likely area where you will encounter problems is if you have used low level
       APIs in your code (as discussed above). In that case you are likely to start seeing
       deprecation warnings when compiling your application. If this happens you have 3 options:

       1.  Ignore the warnings. They are just warnings. The deprecated functions are still present
           and you may still use them. However be aware that they may be removed from a future
           version of OpenSSL.

       2.  Suppress the warnings. Refer to your compiler documentation on how to do this.

       3.  Remove your usage of the low level APIs. In this case you will need to rewrite your code
           to use the high level APIs instead

       _Error_ _code_ _changes_

       As OpenSSL 3.0 provides a brand new Encoder/Decoder mechanism for working with widely used
       file formats, application code that checks for particular error reason codes on key loading
       failures might need an update.

       Password-protected keys may deserve special attention. If only some errors are treated as an
       indicator that the user should be asked about the password again, it's worth testing these
       scenarios and processing the newly relevant codes.

       There may be more cases to treat specially, depending on the calling application code.

### Upgrading from OpenSSL 1.0.2
       Upgrading to OpenSSL 3.0 from OpenSSL 1.0.2 is likely to be significantly more difficult. In
       addition to the issues discussed above in the section about "Upgrading from OpenSSL 1.1.1",
       the main things to be aware of are:

       1.  The build and installation procedure has changed significantly.

           Check the file INSTALL.md in the top of the installation for instructions on how to build
           and install OpenSSL for your platform. Also read the various NOTES files in the same
           directory, as applicable for your platform.

       2.  Many structures have been made opaque in OpenSSL 3.0.

           The structure definitions have been removed from the public header files and moved to
           internal header files. In practice this means that you can no longer stack allocate some
           structures. Instead they must be heap allocated through some function call (typically
           those function names have a "_new" suffix to them).  Additionally you must use "setter"
           or "getter" functions to access the fields within those structures.

           For example code that previously looked like this:

            EVP_MD_CTX md_ctx;

            /* This line will now generate compiler errors */
            EVP_MD_CTX_init(&md_ctx);

           The code needs to be amended to look like this:

            EVP_MD_CTX *md_ctx;

            md_ctx = EVP_MD_CTX_new();
            ...
            ...
            EVP_MD_CTX_free(md_ctx);

       3.  Support for TLSv1.3 has been added.

           This has a number of implications for SSL/TLS applications. See the TLS1.3 page
           <<https://wiki.openssl.org/index.php/TLS1.3>> for further details.

       More details about the breaking changes between OpenSSL versions 1.0.2 and 1.1.0 can be found
       on the OpenSSL 1.1.0 Changes page <<https://wiki.openssl.org/index.php/OpenSSL_1.1.0_Changes>>.

       _Upgrading_ _from_ _the_ _OpenSSL_ _2.0_ _FIPS_ _Object_ _Module_

       The OpenSSL 2.0 FIPS Object Module was a separate download that had to be built separately
       and then integrated into your main OpenSSL 1.0.2 build.  In OpenSSL 3.0 the FIPS support is
       fully integrated into the mainline version of OpenSSL and is no longer a separate download.
       For further information see "Completing the installation of the FIPS Module".

       The function calls **FIPS**___**mode()** and **FIPS**___**mode**___**set()** have been removed from OpenSSL 3.0. You
       should rewrite your application to not use them.  See **fips**___**[module**(7)](https://www.chedong.com/phpMan.php/man/module/7/markdown) and
       **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown) for details.

### Completing the installation of the FIPS Module
       The FIPS Module will be built and installed automatically if FIPS support has been
       configured. The current documentation can be found in the README-FIPS
       <<https://github.com/openssl/openssl/blob/master/README-FIPS.md>> file.

### Programming
       Applications written to work with OpenSSL 1.1.1 will mostly just work with OpenSSL 3.0.
       However changes will be required if you want to take advantage of some of the new features
       that OpenSSL 3.0 makes available. In order to do that you need to understand some new
       concepts introduced in OpenSSL 3.0.  Read "Library contexts" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown) for further
       information.

       _Library_ _Context_

       A library context allows different components of a complex application to each use a
       different library context and have different providers loaded with different configuration
       settings.  See "Library contexts" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown) for further info.

       If the user creates an **OSSL**___**LIB**___**CTX** via **OSSL**___**LIB**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) then many functions may need to
       be changed to pass additional parameters to handle the library context.

       Using a Library Context - Old functions that should be changed

       If a library context is needed then all EVP_* digest functions that return a **const** **EVP**___**MD** *****
       such as **EVP**___**sha256()** should be replaced with a call to **EVP**___**MD**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown). See "ALGORITHM
       FETCHING" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).

       If a library context is needed then all EVP_* cipher functions that return a **const** **EVP**___**CIPHER**
       ***** such as **EVP**___**aes**___**128**___**cbc()** should be replaced vith a call to **EVP**___**CIPHER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown). See
       "ALGORITHM FETCHING" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).

       Some functions can be passed an object that has already been set up with a library context
       such as **d2i**___**[X509**(3)](https://www.chedong.com/phpMan.php/man/X509/3/markdown), **d2i**___**X509**___**[CRL**(3)](https://www.chedong.com/phpMan.php/man/CRL/3/markdown), **d2i**___**X509**___**[REQ**(3)](https://www.chedong.com/phpMan.php/man/REQ/3/markdown) and **d2i**___**X509**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown). If NULL is
       passed instead then the created object will be set up with the default library context. Use
       **X509**___**new**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **X509**___**CRL**___**new**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **X509**___**REQ**___**new**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown) and **X509**___**PUBKEY**___**new**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown) if a library
       context is required.

       All functions listed below with a _NAME_ have a replacment function _NAME_ex_ that takes
       **OSSL**___**LIB**___**CTX** as an additional argument. Functions that have other mappings are listed along
       with the respective name.

       •   **ASN1**___**item**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **ASN1**___**item**___**[d2i**(3)](https://www.chedong.com/phpMan.php/man/d2i/3/markdown), **ASN1**___**item**___**d2i**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown), **ASN1**___**item**___**d2i**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown),
           **ASN1**___**item**___**[sign**(3)](https://www.chedong.com/phpMan.php/man/sign/3/markdown) and **ASN1**___**item**___**[verify**(3)](https://www.chedong.com/phpMan.php/man/verify/3/markdown)

       •   **BIO**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **b2i**___**RSA**___**PVK**___**bio()** and **i2b**___**PVK**___**bio()**

       •   **BN**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) and **BN**___**CTX**___**secure**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **CMS**___**AuthEnvelopedData**___**[create**(3)](https://www.chedong.com/phpMan.php/man/create/3/markdown), **CMS**___**ContentInfo**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **CMS**___**data**___**[create**(3)](https://www.chedong.com/phpMan.php/man/create/3/markdown),
           **CMS**___**digest**___**[create**(3)](https://www.chedong.com/phpMan.php/man/create/3/markdown), **CMS**___**EncryptedData**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown), **CMS**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown),
           **CMS**___**EnvelopedData**___**[create**(3)](https://www.chedong.com/phpMan.php/man/create/3/markdown), **CMS**___**ReceiptRequest**___**[create0**(3)](https://www.chedong.com/phpMan.php/man/create0/3/markdown) and **CMS**___**[sign**(3)](https://www.chedong.com/phpMan.php/man/sign/3/markdown)

       •   **CONF**___**modules**___**load**___**[file**(3)](https://www.chedong.com/phpMan.php/man/file/3/markdown)

       •   **CTLOG**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **CTLOG**___**new**___**from**___**[base64**(3)](https://www.chedong.com/phpMan.php/man/base64/3/markdown) and **CTLOG**___**STORE**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **CT**___**POLICY**___**EVAL**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **d2i**___**[AutoPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/AutoPrivateKey/3/markdown), **d2i**___**[PrivateKey**(3)](https://www.chedong.com/phpMan.php/man/PrivateKey/3/markdown) and **d2i**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown)

       •   **d2i**___**PrivateKey**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown) and **d2i**___**PrivateKey**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown)

           Use **d2i**___**PrivateKey**___**ex**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown) and **d2i**___**PrivateKey**___**ex**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown)

       •   **EC**___**GROUP**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

           Use **EC**___**GROUP**___**new**___**by**___**curve**___**name**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown) or **EC**___**GROUP**___**new**___**from**___**[params**(3)](https://www.chedong.com/phpMan.php/man/params/3/markdown).

       •   **EVP**___**[DigestSignInit**(3)](https://www.chedong.com/phpMan.php/man/DigestSignInit/3/markdown) and **EVP**___**[DigestVerifyInit**(3)](https://www.chedong.com/phpMan.php/man/DigestVerifyInit/3/markdown)

       •   **EVP**___**PBE**___**[CipherInit**(3)](https://www.chedong.com/phpMan.php/man/CipherInit/3/markdown), **EVP**___**PBE**___**[find**(3)](https://www.chedong.com/phpMan.php/man/find/3/markdown) and **EVP**___**PBE**___**[scrypt**(3)](https://www.chedong.com/phpMan.php/man/scrypt/3/markdown)

       •   **PKCS5**___**PBE**___**[keyivgen**(3)](https://www.chedong.com/phpMan.php/man/keyivgen/3/markdown)

       •   **EVP**___**[PKCS82PKEY**(3)](https://www.chedong.com/phpMan.php/man/PKCS82PKEY/3/markdown)

       •   **EVP**___**PKEY**___**CTX**___**new**___**[id**(3)](https://www.chedong.com/phpMan.php/man/id/3/markdown)

           Use **EVP**___**PKEY**___**CTX**___**new**___**from**___**[name**(3)](https://www.chedong.com/phpMan.php/man/name/3/markdown)

       •   **EVP**___**PKEY**___**derive**___**set**___**[peer**(3)](https://www.chedong.com/phpMan.php/man/peer/3/markdown), **EVP**___**PKEY**___**new**___**raw**___**private**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown) and
           **EVP**___**PKEY**___**new**___**raw**___**public**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown)

       •   **EVP**___**[SignFinal**(3)](https://www.chedong.com/phpMan.php/man/SignFinal/3/markdown) and **EVP**___**[VerifyFinal**(3)](https://www.chedong.com/phpMan.php/man/VerifyFinal/3/markdown)

       •   **NCONF**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **OCSP**___**RESPID**___**[match**(3)](https://www.chedong.com/phpMan.php/man/match/3/markdown) and **OCSP**___**RESPID**___**set**___**by**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown)

       •   **OPENSSL**___**thread**___**[stop**(3)](https://www.chedong.com/phpMan.php/man/stop/3/markdown)

       •   **OSSL**___**STORE**___**[open**(3)](https://www.chedong.com/phpMan.php/man/open/3/markdown)

       •   **PEM**___**read**___**bio**___**[Parameters**(3)](https://www.chedong.com/phpMan.php/man/Parameters/3/markdown), **PEM**___**read**___**bio**___**[PrivateKey**(3)](https://www.chedong.com/phpMan.php/man/PrivateKey/3/markdown), **PEM**___**read**___**bio**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown),
           **PEM**___**read**___**[PrivateKey**(3)](https://www.chedong.com/phpMan.php/man/PrivateKey/3/markdown) and **PEM**___**read**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown)

       •   **PEM**___**write**___**bio**___**[PrivateKey**(3)](https://www.chedong.com/phpMan.php/man/PrivateKey/3/markdown), **PEM**___**write**___**bio**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown), **PEM**___**write**___**[PrivateKey**(3)](https://www.chedong.com/phpMan.php/man/PrivateKey/3/markdown) and
           **PEM**___**write**___**[PUBKEY**(3)](https://www.chedong.com/phpMan.php/man/PUBKEY/3/markdown)

       •   **PEM**___**X509**___**INFO**___**read**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown) and **PEM**___**X509**___**INFO**___**[read**(3)](https://www.chedong.com/phpMan.php/man/read/3/markdown)

       •   **PKCS12**___**add**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown), **PKCS12**___**add**___**[safe**(3)](https://www.chedong.com/phpMan.php/man/safe/3/markdown), **PKCS12**___**add**___**[safes**(3)](https://www.chedong.com/phpMan.php/man/safes/3/markdown), **PKCS12**___**[create**(3)](https://www.chedong.com/phpMan.php/man/create/3/markdown),
           **PKCS12**___**decrypt**___**[skey**(3)](https://www.chedong.com/phpMan.php/man/skey/3/markdown), **PKCS12**___**[init**(3)](https://www.chedong.com/phpMan.php/man/init/3/markdown), **PKCS12**___**item**___**decrypt**___**[d2i**(3)](https://www.chedong.com/phpMan.php/man/d2i/3/markdown),
           **PKCS12**___**item**___**i2d**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown), **PKCS12**___**key**___**gen**___**[asc**(3)](https://www.chedong.com/phpMan.php/man/asc/3/markdown), **PKCS12**___**key**___**gen**___**[uni**(3)](https://www.chedong.com/phpMan.php/man/uni/3/markdown),
           **PKCS12**___**key**___**gen**___**[utf8**(3)](https://www.chedong.com/phpMan.php/man/utf8/3/markdown), **PKCS12**___**pack**___**[p7encdata**(3)](https://www.chedong.com/phpMan.php/man/p7encdata/3/markdown), **PKCS12**___**pbe**___**[crypt**(3)](https://www.chedong.com/phpMan.php/man/crypt/3/markdown),
           **PKCS12**___**PBE**___**[keyivgen**(3)](https://www.chedong.com/phpMan.php/man/keyivgen/3/markdown), **PKCS12**___**SAFEBAG**___**create**___**pkcs8**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown)

       •   **PKCS5**___**pbe**___**set0**___**[algor**(3)](https://www.chedong.com/phpMan.php/man/algor/3/markdown), **PKCS5**___**pbe**___**[set**(3)](https://www.chedong.com/phpMan.php/man/set/3/markdown), **PKCS5**___**pbe2**___**set**___**[iv**(3)](https://www.chedong.com/phpMan.php/man/iv/3/markdown), **PKCS5**___**pbkdf2**___**[set**(3)](https://www.chedong.com/phpMan.php/man/set/3/markdown) and
           **PKCS5**___**v2**___**scrypt**___**[keyivgen**(3)](https://www.chedong.com/phpMan.php/man/keyivgen/3/markdown)

       •   **PKCS7**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown), **PKCS7**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) and **PKCS7**___**[sign**(3)](https://www.chedong.com/phpMan.php/man/sign/3/markdown)

       •   **PKCS8**___**[decrypt**(3)](https://www.chedong.com/phpMan.php/man/decrypt/3/markdown), **PKCS8**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown) and **PKCS8**___**set0**___**[pbe**(3)](https://www.chedong.com/phpMan.php/man/pbe/3/markdown)

       •   **RAND**___**[bytes**(3)](https://www.chedong.com/phpMan.php/man/bytes/3/markdown) and **RAND**___**priv**___**[bytes**(3)](https://www.chedong.com/phpMan.php/man/bytes/3/markdown)

       •   **SMIME**___**write**___**[ASN1**(3)](https://www.chedong.com/phpMan.php/man/ASN1/3/markdown)

       •   **SSL**___**load**___**client**___**CA**___**[file**(3)](https://www.chedong.com/phpMan.php/man/file/3/markdown)

       •   **SSL**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **TS**___**RESP**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **X509**___**CRL**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **X509**___**load**___**cert**___**crl**___**[file**(3)](https://www.chedong.com/phpMan.php/man/file/3/markdown) and **X509**___**load**___**cert**___**[file**(3)](https://www.chedong.com/phpMan.php/man/file/3/markdown)

       •   **X509**___**LOOKUP**___**by**___**[subject**(3)](https://www.chedong.com/phpMan.php/man/subject/3/markdown) and **X509**___**LOOKUP**___**[ctrl**(3)](https://www.chedong.com/phpMan.php/man/ctrl/3/markdown)

       •   **X509**___**NAME**___**[hash**(3)](https://www.chedong.com/phpMan.php/man/hash/3/markdown)

       •   **X509**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **X509**___**REQ**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) and **X509**___**REQ**___**[verify**(3)](https://www.chedong.com/phpMan.php/man/verify/3/markdown)

       •   **X509**___**STORE**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **X509**___**STORE**___**set**___**default**___**[paths**(3)](https://www.chedong.com/phpMan.php/man/paths/3/markdown), **X509**___**STORE**___**load**___**[file**(3)](https://www.chedong.com/phpMan.php/man/file/3/markdown),
           **X509**___**STORE**___**load**___**[locations**(3)](https://www.chedong.com/phpMan.php/man/locations/3/markdown) and **X509**___**STORE**___**load**___**[store**(3)](https://www.chedong.com/phpMan.php/man/store/3/markdown)

       New functions that use a Library context

       The following functions can be passed a library context if required.  Passing NULL will use
       the default library context.

       •   **BIO**___**new**___**from**___**core**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown)

       •   **EVP**___**ASYM**___**CIPHER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**ASYM**___**CIPHER**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**CIPHER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**CIPHER**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**default**___**properties**___**enable**___**[fips**(3)](https://www.chedong.com/phpMan.php/man/fips/3/markdown) and **EVP**___**default**___**properties**___**is**___**fips**___**[enabled**(3)](https://www.chedong.com/phpMan.php/man/enabled/3/markdown)

       •   **EVP**___**KDF**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**KDF**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**KEM**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**KEM**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**KEYEXCH**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**KEYEXCH**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**KEYMGMT**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**KEYMGMT**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**MAC**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**MAC**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**MD**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**MD**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**PKEY**___**CTX**___**new**___**from**___**[pkey**(3)](https://www.chedong.com/phpMan.php/man/pkey/3/markdown)

       •   **EVP**___**PKEY**___**Q**___**[keygen**(3)](https://www.chedong.com/phpMan.php/man/keygen/3/markdown)

       •   **EVP**___**Q**___**[mac**(3)](https://www.chedong.com/phpMan.php/man/mac/3/markdown) and **EVP**___**Q**___**[digest**(3)](https://www.chedong.com/phpMan.php/man/digest/3/markdown)

       •   **EVP**___**[RAND**(3)](https://www.chedong.com/phpMan.php/man/RAND/3/markdown) and **EVP**___**RAND**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **EVP**___**set**___**default**___**[properties**(3)](https://www.chedong.com/phpMan.php/man/properties/3/markdown)

       •   **EVP**___**SIGNATURE**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **EVP**___**SIGNATURE**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **OSSL**___**CMP**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) and **OSSL**___**CMP**___**SRV**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **OSSL**___**CRMF**___**ENCRYPTEDVALUE**___**get1**___**[encCert**(3)](https://www.chedong.com/phpMan.php/man/encCert/3/markdown)

       •   **OSSL**___**CRMF**___**MSG**___**create**___**[popo**(3)](https://www.chedong.com/phpMan.php/man/popo/3/markdown) and **OSSL**___**CRMF**___**MSGS**___**verify**___**[popo**(3)](https://www.chedong.com/phpMan.php/man/popo/3/markdown)

       •   **OSSL**___**CRMF**___**pbm**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown) and **OSSL**___**CRMF**___**pbmp**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown)

       •   **OSSL**___**DECODER**___**CTX**___**add**___**[extra**(3)](https://www.chedong.com/phpMan.php/man/extra/3/markdown) and **OSSL**___**DECODER**___**CTX**___**new**___**for**___**[pkey**(3)](https://www.chedong.com/phpMan.php/man/pkey/3/markdown)

       •   **OSSL**___**DECODER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **OSSL**___**DECODER**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **OSSL**___**ENCODER**___**CTX**___**add**___**[extra**(3)](https://www.chedong.com/phpMan.php/man/extra/3/markdown)

       •   **OSSL**___**ENCODER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **OSSL**___**ENCODER**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **OSSL**___**LIB**___**CTX**___**[free**(3)](https://www.chedong.com/phpMan.php/man/free/3/markdown), **OSSL**___**LIB**___**CTX**___**load**___**[config**(3)](https://www.chedong.com/phpMan.php/man/config/3/markdown) and **OSSL**___**LIB**___**CTX**___**set0**___**[default**(3)](https://www.chedong.com/phpMan.php/man/default/3/markdown)

       •   **OSSL**___**PROVIDER**___**add**___**[builtin**(3)](https://www.chedong.com/phpMan.php/man/builtin/3/markdown), **OSSL**___**PROVIDER**___**[available**(3)](https://www.chedong.com/phpMan.php/man/available/3/markdown), **OSSL**___**PROVIDER**___**do**___**[all**(3)](https://www.chedong.com/phpMan.php/man/all/3/markdown),
           **OSSL**___**PROVIDER**___**[load**(3)](https://www.chedong.com/phpMan.php/man/load/3/markdown), **OSSL**___**PROVIDER**___**set**___**default**___**search**___**[path**(3)](https://www.chedong.com/phpMan.php/man/path/3/markdown) and
           **OSSL**___**PROVIDER**___**try**___**[load**(3)](https://www.chedong.com/phpMan.php/man/load/3/markdown)

       •   **OSSL**___**SELF**___**TEST**___**get**___**[callback**(3)](https://www.chedong.com/phpMan.php/man/callback/3/markdown) and **OSSL**___**SELF**___**TEST**___**set**___**[callback**(3)](https://www.chedong.com/phpMan.php/man/callback/3/markdown)

       •   **OSSL**___**STORE**___**[attach**(3)](https://www.chedong.com/phpMan.php/man/attach/3/markdown)

       •   **OSSL**___**STORE**___**LOADER**___**[fetch**(3)](https://www.chedong.com/phpMan.php/man/fetch/3/markdown) and **OSSL**___**STORE**___**LOADER**___**do**___**all**___**[provided**(3)](https://www.chedong.com/phpMan.php/man/provided/3/markdown)

       •   **RAND**___**get0**___**[primary**(3)](https://www.chedong.com/phpMan.php/man/primary/3/markdown), **RAND**___**get0**___**[private**(3)](https://www.chedong.com/phpMan.php/man/private/3/markdown), **RAND**___**get0**___**[public**(3)](https://www.chedong.com/phpMan.php/man/public/3/markdown), **RAND**___**set**___**DRBG**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown)
           and **RAND**___**set**___**seed**___**source**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown)

       _Providers_

       Providers are described in detail here "Providers" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).  See also "OPENSSL
       PROVIDERS" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).

       _Fetching_ _algorithms_ _and_ _property_ _queries_

       Implicit and Explicit Fetching is described in detail here "ALGORITHM FETCHING" in [**crypto**(7)](https://www.chedong.com/phpMan.php/man/crypto/7/markdown).

       _Mapping_ _EVP_ _controls_ _and_ _flags_ _to_ _provider_ _O_O_S_S_S_S_L_L_____P_P_A_A_R_R_A_A_M_M _parameters_

       The existing functions for controls (such as **EVP**___**CIPHER**___**CTX**___**[ctrl**(3)](https://www.chedong.com/phpMan.php/man/ctrl/3/markdown)) and manipulating flags
       (such as **EVP**___**MD**___**CTX**___**set**___**[flags**(3)](https://www.chedong.com/phpMan.php/man/flags/3/markdown))internally use **OSSL**___**PARAMS** to pass information to/from
       provider objects.  See **OSSL**___**[PARAM**(3)](https://www.chedong.com/phpMan.php/man/PARAM/3/markdown) for additional information related to parameters.

       For ciphers see "CONTROLS" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown), "FLAGS" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown) and
       "PARAMETERS" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown).

       For digests see "CONTROLS" in **EVP**___**[DigestInit**(3)](https://www.chedong.com/phpMan.php/man/DigestInit/3/markdown), "FLAGS" in **EVP**___**[DigestInit**(3)](https://www.chedong.com/phpMan.php/man/DigestInit/3/markdown) and
       "PARAMETERS" in **EVP**___**[DigestInit**(3)](https://www.chedong.com/phpMan.php/man/DigestInit/3/markdown).

       _Deprecation_ _of_ _Low_ _Level_ _Functions_

       A significant number of APIs have been deprecated in OpenSSL 3.0.  This section describes
       some common categories of deprecations.  See "Deprecated function mappings" for the list of
       deprecated functions that refer to these categories.

       Providers are a replacement for engines and low-level method overrides

       Any accessor that uses an ENGINE is deprecated (such as **EVP**___**PKEY**___**set1**___**engine()**).
       Applications using engines should instead use providers.

       Before providers were added algorithms were overriden by changing the methods used by
       algorithms. All these methods such as **RSA**___**new**___**method()** and **RSA**___**meth**___**new()** are now deprecated
       and can be replaced by using providers instead.

       Deprecated i2d and d2i functions for low-level key types

       Any i2d and d2i functions such as **d2i**___**DHparams()** that take a low-level key type have been
       deprecated. Applications should instead use the **OSSL**___**[DECODER**(3)](https://www.chedong.com/phpMan.php/man/DECODER/3/markdown) and **OSSL**___**[ENCODER**(3)](https://www.chedong.com/phpMan.php/man/ENCODER/3/markdown) APIs to
       read and write files.  See "Migration" in **d2i**___**[RSAPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/RSAPrivateKey/3/markdown) for further details.

       Deprecated low-level key object getters and setters

       Applications that set or get low-level key objects (such as **EVP**___**PKEY**___**set1**___**DH()** or
       **EVP**___**PKEY**___**get0()**) should instead use the OSSL_ENCODER (See **OSSL**___**ENCODER**___**to**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown)) or
       OSSL_DECODER (See **OSSL**___**DECODER**___**from**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown)) APIs, or alternatively use **EVP**___**PKEY**___**[fromdata**(3)](https://www.chedong.com/phpMan.php/man/fromdata/3/markdown)
       or **EVP**___**PKEY**___**[todata**(3)](https://www.chedong.com/phpMan.php/man/todata/3/markdown).

       Deprecated low-level key parameter getters

       Functions that access low-level objects directly such as **RSA**___**get0**___**[n**(3)](https://www.chedong.com/phpMan.php/man/n/3/markdown) are now deprecated.
       Applications should use one of **EVP**___**PKEY**___**get**___**bn**___**[param**(3)](https://www.chedong.com/phpMan.php/man/param/3/markdown), **EVP**___**PKEY**___**get**___**int**___**[param**(3)](https://www.chedong.com/phpMan.php/man/param/3/markdown),
       l<**EVP**___**PKEY**___**get**___**size**___**t**___**[param**(3)](https://www.chedong.com/phpMan.php/man/param/3/markdown)>, **EVP**___**PKEY**___**get**___**utf8**___**string**___**[param**(3)](https://www.chedong.com/phpMan.php/man/param/3/markdown),
       **EVP**___**PKEY**___**get**___**octet**___**string**___**[param**(3)](https://www.chedong.com/phpMan.php/man/param/3/markdown) or **EVP**___**PKEY**___**get**___**[params**(3)](https://www.chedong.com/phpMan.php/man/params/3/markdown) to access fields from an
       EVP_PKEY.  Gettable parameters are listed in "Common RSA parameters" in **EVP**___**[PKEY-RSA**(7)](https://www.chedong.com/phpMan.php/man/PKEY-RSA/7/markdown), "DH
       parameters" in **EVP**___**[PKEY-DH**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DH/7/markdown), "DSA parameters" in **EVP**___**[PKEY-DSA**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DSA/7/markdown), "FFC parameters" in
       **EVP**___**[PKEY-FFC**(7)](https://www.chedong.com/phpMan.php/man/PKEY-FFC/7/markdown), "Common EC parameters" in **EVP**___**[PKEY-EC**(7)](https://www.chedong.com/phpMan.php/man/PKEY-EC/7/markdown) and "Common X25519, X448, ED25519
       and ED448 parameters" in **EVP**___**[PKEY-X25519**(7)](https://www.chedong.com/phpMan.php/man/PKEY-X25519/7/markdown).  Applications may also use **EVP**___**PKEY**___**[todata**(3)](https://www.chedong.com/phpMan.php/man/todata/3/markdown) to
       return all fields.

       Deprecated low-level key parameter setters

       Functions that access low-level objects directly such as **RSA**___**set0**___**crt**___**[params**(3)](https://www.chedong.com/phpMan.php/man/params/3/markdown) are now
       deprecated. Applications should use **EVP**___**PKEY**___**[fromdata**(3)](https://www.chedong.com/phpMan.php/man/fromdata/3/markdown) to create new keys from user
       provided key data. Keys should be immutable once they are created, so if required the user
       may use **EVP**___**PKEY**___**[todata**(3)](https://www.chedong.com/phpMan.php/man/todata/3/markdown), **OSSL**___**PARAM**___**[merge**(3)](https://www.chedong.com/phpMan.php/man/merge/3/markdown), and **EVP**___**PKEY**___**[fromdata**(3)](https://www.chedong.com/phpMan.php/man/fromdata/3/markdown) to create a
       modified key.  See "Examples" in **EVP**___**[PKEY-DH**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DH/7/markdown) for more information.  See "Deprecated low-
       level key generation functions" for information on generating a key using parameters.

       Deprecated low-level object creation

       Low-level objects were created using methods such as **RSA**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **RSA**___**up**___**[ref**(3)](https://www.chedong.com/phpMan.php/man/ref/3/markdown) and
       **RSA**___**[free**(3)](https://www.chedong.com/phpMan.php/man/free/3/markdown). Applications should instead use the high-level EVP_PKEY APIs, e.g.
       **EVP**___**PKEY**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **EVP**___**PKEY**___**up**___**[ref**(3)](https://www.chedong.com/phpMan.php/man/ref/3/markdown) and **EVP**___**PKEY**___**[free**(3)](https://www.chedong.com/phpMan.php/man/free/3/markdown).  See also
       **EVP**___**PKEY**___**CTX**___**new**___**from**___**[name**(3)](https://www.chedong.com/phpMan.php/man/name/3/markdown) and **EVP**___**PKEY**___**CTX**___**new**___**from**___**[pkey**(3)](https://www.chedong.com/phpMan.php/man/pkey/3/markdown).

       EVP_PKEYs may be created in a variety of ways: See also "Deprecated low-level key generation
       functions", "Deprecated low-level key reading and writing functions" and "Deprecated low-
       level key parameter setters".

       Deprecated low-level encryption functions

       Low-level encryption functions such as **AES**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown) and **AES**___**[decrypt**(3)](https://www.chedong.com/phpMan.php/man/decrypt/3/markdown) have been informally
       discouraged from use for a long time. Applications should instead use the high level EVP APIs
       **EVP**___**EncryptInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **EVP**___**[EncryptUpdate**(3)](https://www.chedong.com/phpMan.php/man/EncryptUpdate/3/markdown), and **EVP**___**EncryptFinal**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown) or
       **EVP**___**DecryptInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **EVP**___**[DecryptUpdate**(3)](https://www.chedong.com/phpMan.php/man/DecryptUpdate/3/markdown) and **EVP**___**DecryptFinal**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown).

       Deprecated low-level digest functions

       Use of low-level digest functions such as **SHA1**___**[Init**(3)](https://www.chedong.com/phpMan.php/man/Init/3/markdown) have been informally discouraged from
       use for a long time.  Applications should instead use the the high level EVP APIs
       **EVP**___**DigestInit**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), **EVP**___**[DigestUpdate**(3)](https://www.chedong.com/phpMan.php/man/DigestUpdate/3/markdown) and **EVP**___**DigestFinal**___**[ex**(3)](https://www.chedong.com/phpMan.php/man/ex/3/markdown), or the quick one-shot
       **EVP**___**Q**___**[digest**(3)](https://www.chedong.com/phpMan.php/man/digest/3/markdown).

       Note that the functions [**SHA1**(3)](https://www.chedong.com/phpMan.php/man/SHA1/3/markdown), [**SHA224**(3)](https://www.chedong.com/phpMan.php/man/SHA224/3/markdown), [**SHA256**(3)](https://www.chedong.com/phpMan.php/man/SHA256/3/markdown), [**SHA384**(3)](https://www.chedong.com/phpMan.php/man/SHA384/3/markdown) and [**SHA512**(3)](https://www.chedong.com/phpMan.php/man/SHA512/3/markdown) have changed
       to macros that use **EVP**___**Q**___**[digest**(3)](https://www.chedong.com/phpMan.php/man/digest/3/markdown).

       Deprecated low-level signing functions

       Use of low-level signing functions such as **DSA**___**[sign**(3)](https://www.chedong.com/phpMan.php/man/sign/3/markdown) have been informally discouraged for a
       long time. Instead applications should use **EVP**___**[DigestSign**(3)](https://www.chedong.com/phpMan.php/man/DigestSign/3/markdown) and **EVP**___**[DigestVerify**(3)](https://www.chedong.com/phpMan.php/man/DigestVerify/3/markdown).  See
       also **EVP**___**[SIGNATURE-RSA**(7)](https://www.chedong.com/phpMan.php/man/SIGNATURE-RSA/7/markdown), **EVP**___**[SIGNATURE-DSA**(7)](https://www.chedong.com/phpMan.php/man/SIGNATURE-DSA/7/markdown), **EVP**___**[SIGNATURE-ECDSA**(7)](https://www.chedong.com/phpMan.php/man/SIGNATURE-ECDSA/7/markdown) and
       **EVP**___**[SIGNATURE-ED25519**(7)](https://www.chedong.com/phpMan.php/man/SIGNATURE-ED25519/7/markdown).

       Deprecated low-level MAC functions

       Low-level mac functions such as **CMAC**___**[Init**(3)](https://www.chedong.com/phpMan.php/man/Init/3/markdown) are deprecated.  Applications should instead use
       the new **EVP**___**[MAC**(3)](https://www.chedong.com/phpMan.php/man/MAC/3/markdown) interface, using **EVP**___**MAC**___**CTX**___**[new**(3)](https://www.chedong.com/phpMan.php/man/new/3/markdown), **EVP**___**MAC**___**CTX**___**[free**(3)](https://www.chedong.com/phpMan.php/man/free/3/markdown), **EVP**___**MAC**___**[init**(3)](https://www.chedong.com/phpMan.php/man/init/3/markdown),
       **EVP**___**MAC**___**[update**(3)](https://www.chedong.com/phpMan.php/man/update/3/markdown) and **EVP**___**MAC**___**[final**(3)](https://www.chedong.com/phpMan.php/man/final/3/markdown) or the single-shot MAC function **EVP**___**Q**___**[mac**(3)](https://www.chedong.com/phpMan.php/man/mac/3/markdown).  See
       **EVP**___**[MAC**(3)](https://www.chedong.com/phpMan.php/man/MAC/3/markdown), **EVP**___**[MAC-HMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-HMAC/7/markdown), **EVP**___**[MAC-CMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-CMAC/7/markdown), **EVP**___**[MAC-GMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-GMAC/7/markdown), **EVP**___**[MAC-KMAC**(7)](https://www.chedong.com/phpMan.php/man/MAC-KMAC/7/markdown),
       **EVP**___**[MAC-BLAKE2**(7)](https://www.chedong.com/phpMan.php/man/MAC-BLAKE2/7/markdown), **EVP**___**[MAC-Poly1305**(7)](https://www.chedong.com/phpMan.php/man/MAC-Poly1305/7/markdown) and **EVP**___**[MAC-Siphash**(7)](https://www.chedong.com/phpMan.php/man/MAC-Siphash/7/markdown) for additional information.

       Note that the one-shot method **HMAC()** is still available for compatability purposes.

       Deprecated low-level validation functions

       Low-level validation functions such as **DH**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown) have been informally discouraged from use
       for a long time. Applications should instead use the high-level EVP_PKEY APIs such as
       **EVP**___**PKEY**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown), **EVP**___**PKEY**___**param**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown), **EVP**___**PKEY**___**param**___**check**___**[quick**(3)](https://www.chedong.com/phpMan.php/man/quick/3/markdown),
       **EVP**___**PKEY**___**public**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown), **EVP**___**PKEY**___**public**___**check**___**[quick**(3)](https://www.chedong.com/phpMan.php/man/quick/3/markdown), **EVP**___**PKEY**___**private**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown), and
       **EVP**___**PKEY**___**pairwise**___**[check**(3)](https://www.chedong.com/phpMan.php/man/check/3/markdown).

       Deprecated low-level key exchange functions

       Many low-level functions have been informally discouraged from use for a long time.
       Applications should instead use **EVP**___**PKEY**___**[derive**(3)](https://www.chedong.com/phpMan.php/man/derive/3/markdown).  See **EVP**___**[KEYEXCH-DH**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-DH/7/markdown),
       **EVP**___**[KEYEXCH-ECDH**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-ECDH/7/markdown) and **EVP**___**[KEYEXCH-X25519**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-X25519/7/markdown).

       Deprecated low-level key generation functions

       Many low-level functions have been informally discouraged from use for a long time.
       Applications should instead use **EVP**___**PKEY**___**keygen**___**[init**(3)](https://www.chedong.com/phpMan.php/man/init/3/markdown) and **EVP**___**PKEY**___**[generate**(3)](https://www.chedong.com/phpMan.php/man/generate/3/markdown) as described
       in **EVP**___**[PKEY-DSA**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DSA/7/markdown), **EVP**___**[PKEY-DH**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DH/7/markdown), **EVP**___**[PKEY-RSA**(7)](https://www.chedong.com/phpMan.php/man/PKEY-RSA/7/markdown), **EVP**___**[PKEY-EC**(7)](https://www.chedong.com/phpMan.php/man/PKEY-EC/7/markdown) and **EVP**___**[PKEY-X25519**(7)](https://www.chedong.com/phpMan.php/man/PKEY-X25519/7/markdown).
       The 'quick' one-shot function **EVP**___**PKEY**___**Q**___**[keygen**(3)](https://www.chedong.com/phpMan.php/man/keygen/3/markdown) and macros for the most common cases:
       <**EVP**___**RSA**___**[gen**(3)](https://www.chedong.com/phpMan.php/man/gen/3/markdown)> and **EVP**___**EC**___**[gen**(3)](https://www.chedong.com/phpMan.php/man/gen/3/markdown) may also be used.

       Deprecated low-level key reading and writing functions

       Use of low-level objects (such as DSA) has been informally discouraged from use for a long
       time. Functions to read and write these low-level objects (such as **PEM**___**read**___**DSA**___**PUBKEY()**)
       should be replaced. Applications should instead use **OSSL**___**ENCODER**___**to**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown) and
       **OSSL**___**DECODER**___**from**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown).

       Deprecated low-level key printing functions

       Use of low-level objects (such as DSA) has been informally discouraged from use for a long
       time. Functions to print these low-level objects such as **DSA**___**print()** should be replaced with
       the equivalent EVP_PKEY functions.  Application should use one of **EVP**___**PKEY**___**print**___**[public**(3)](https://www.chedong.com/phpMan.php/man/public/3/markdown),
       **EVP**___**PKEY**___**print**___**[private**(3)](https://www.chedong.com/phpMan.php/man/private/3/markdown), **EVP**___**PKEY**___**print**___**[params**(3)](https://www.chedong.com/phpMan.php/man/params/3/markdown), **EVP**___**PKEY**___**print**___**public**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown),
       **EVP**___**PKEY**___**print**___**private**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown) or **EVP**___**PKEY**___**print**___**params**___**[fp**(3)](https://www.chedong.com/phpMan.php/man/fp/3/markdown). Note that internally these use
       **OSSL**___**ENCODER**___**to**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown) and **OSSL**___**DECODER**___**from**___**[bio**(3)](https://www.chedong.com/phpMan.php/man/bio/3/markdown).

       _Deprecated_ _function_ _mappings_

       The following functions have been deprecated in 3.0.

       •   **AES**___**bi**___**ige**___**encrypt()** and **AES**___**ige**___**encrypt()**

           There is no replacement for the IGE functions. New code should not use these modes.
           These undocumented functions were never integrated into the EVP layer.  They implemented
           the AES Infinite Garble Extension (IGE) mode and AES Bi-directional IGE mode. These modes
           were never formally standardised and usage of these functions is believed to be very
           small. In particular **AES**___**bi**___**ige**___**encrypt()** has a known bug. It accepts 2 AES keys, but
           only one is ever used. The security implications are believed to be minimal, but this
           issue was never fixed for backwards compatibility reasons.

       •   **AES**___**encrypt()**, **AES**___**decrypt()**, **AES**___**set**___**encrypt**___**key()**, **AES**___**set**___**decrypt**___**key()**,
           **AES**___**cbc**___**encrypt()**, **AES**___**cfb128**___**encrypt()**, **AES**___**cfb1**___**encrypt()**, **AES**___**cfb8**___**encrypt()**,
           **AES**___**ecb**___**encrypt()**, **AES**___**ofb128**___**encrypt()**

       •   **AES**___**unwrap**___**key()**, **AES**___**wrap**___**key()**

           See "Deprecated low-level encryption functions"

       •   **AES**___**options()**

           There is no replacement. It returned a string indicating if the AES code was unrolled.

       •   **ASN1**___**digest()**, **ASN1**___**sign()**, **ASN1**___**verify()**

           There are no replacements. These old functions are not used, and could be disabled with
           the macro NO_ASN1_OLD since OpenSSL 0.9.7.

       •   **ASN1**___**STRING**___**length**___**set()**

           Use **ASN1**___**STRING**___**[set**(3)](https://www.chedong.com/phpMan.php/man/set/3/markdown) or **ASN1**___**STRING**___**[set0**(3)](https://www.chedong.com/phpMan.php/man/set0/3/markdown) instead.  This was a potentially unsafe
           function that could change the bounds of a previously passed in pointer.

       •   **BF**___**encrypt()**, **BF**___**decrypt()**, **BF**___**set**___**key()**, **BF**___**cbc**___**encrypt()**, **BF**___**cfb64**___**encrypt()**,
           **BF**___**ecb**___**encrypt()**, **BF**___**ofb64**___**encrypt()**

           See "Deprecated low-level encryption functions".  The Blowfish algorithm has been moved
           to the Legacy Provider.

       •   **BF**___**options()**

           There is no replacement. This option returned a constant string.

       •   **BIO**___**get**___**callback()**, **BIO**___**set**___**callback()**, **BIO**___**debug**___**callback()**

           Use the respective non-deprecated ___**ex()** functions.

       •   **BN**___**is**___**prime**___**ex()**, **BN**___**is**___**prime**___**fasttest**___**ex()**

           Use **BN**___**check**___**[prime**(3)](https://www.chedong.com/phpMan.php/man/prime/3/markdown) which that avoids possible misuse and always uses at least 64
           rounds of the Miller-Rabin primality test.

       •   **BN**___**pseudo**___**rand()**, **BN**___**pseudo**___**rand**___**range()**

           Use **BN**___**[rand**(3)](https://www.chedong.com/phpMan.php/man/rand/3/markdown) and **BN**___**rand**___**[range**(3)](https://www.chedong.com/phpMan.php/man/range/3/markdown).

       •   **BN**___**X931**___**derive**___**prime**___**ex()**, **BN**___**X931**___**generate**___**prime**___**ex()**, **BN**___**X931**___**generate**___**Xpq()**

           There are no replacements for these low-level functions. They were used internally by
           **RSA**___**X931**___**derive**___**ex()** and **RSA**___**X931**___**generate**___**key**___**ex()** which are also deprecated.  Use
           **EVP**___**PKEY**___**[keygen**(3)](https://www.chedong.com/phpMan.php/man/keygen/3/markdown) instead.

       •   **Camellia**___**encrypt()**, **Camellia**___**decrypt()**, **Camellia**___**set**___**key()**, **Camellia**___**cbc**___**encrypt()**,
           **Camellia**___**cfb128**___**encrypt()**, **Camellia**___**cfb1**___**encrypt()**, **Camellia**___**cfb8**___**encrypt()**,
           **Camellia**___**ctr128**___**encrypt()**, **Camellia**___**ecb**___**encrypt()**, **Camellia**___**ofb128**___**encrypt()**

           See "Deprecated low-level encryption functions".

       •   **CAST**___**encrypt()**, **CAST**___**decrypt()**, **CAST**___**set**___**key()**, **CAST**___**cbc**___**encrypt()**, **CAST**___**cfb64**___**encrypt()**,
           **CAST**___**ecb**___**encrypt()**, **CAST**___**ofb64**___**encrypt()**

           See "Deprecated low-level encryption functions".  The CAST algorithm has been moved to
           the Legacy Provider.

       •   **CMAC**___**CTX**___**new()**, **CMAC**___**CTX**___**cleanup()**, **CMAC**___**CTX**___**copy()**, **CMAC**___**CTX**___**free()**,
           **CMAC**___**CTX**___**get0**___**cipher**___**ctx()**

           See "Deprecated low-level MAC functions".

       •   **CMAC**___**Init()**, **CMAC**___**Update()**, **CMAC**___**Final()**, **CMAC**___**resume()**

           See "Deprecated low-level MAC functions".

       •   **CRYPTO**___**mem**___**ctrl()**, **CRYPTO**___**mem**___**debug**___**free()**, **CRYPTO**___**mem**___**debug**___**malloc()**,
           **CRYPTO**___**mem**___**debug**___**pop()**, **CRYPTO**___**mem**___**debug**___**push()**, **CRYPTO**___**mem**___**debug**___**realloc()**,
           **CRYPTO**___**mem**___**leaks()**, **CRYPTO**___**mem**___**leaks**___**cb()**, **CRYPTO**___**mem**___**leaks**___**fp()**, **CRYPTO**___**set**___**mem**___**debug()**

           Memory-leak checking has been deprecated in favor of more modern development tools, such
           as compiler memory and leak sanitizers or Valgrind.

       •   **CRYPTO**___**cts128**___**encrypt**___**block()**, **CRYPTO**___**cts128**___**encrypt()**, **CRYPTO**___**cts128**___**decrypt**___**block()**,
           **CRYPTO**___**cts128**___**decrypt()**, **CRYPTO**___**nistcts128**___**encrypt**___**block()**, **CRYPTO**___**nistcts128**___**encrypt()**,
           **CRYPTO**___**nistcts128**___**decrypt**___**block()**, **CRYPTO**___**nistcts128**___**decrypt()**

           Use the higher level functions **EVP**___**CipherInit**___**ex2()**, **EVP**___**CipherUpdate()** and
           **EVP**___**CipherFinal**___**ex()** instead.  See the "cts_mode" parameter in "Gettable and Settable
           EVP_CIPHER_CTX parameters" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown).  See "EXAMPLES" in **EVP**___**[EncryptInit**(3)](https://www.chedong.com/phpMan.php/man/EncryptInit/3/markdown)
           for a AES-256-CBC-CTS example.

       •   **d2i**___**DHparams()**, **d2i**___**DHxparams()**, **d2i**___**DSAparams()**, **d2i**___**DSAPrivateKey()**,
           **d2i**___**DSAPrivateKey**___**bio()**, **d2i**___**DSAPrivateKey**___**fp()**, **d2i**___**DSA**___**PUBKEY()**, **d2i**___**DSA**___**PUBKEY**___**bio()**,
           **d2i**___**DSA**___**PUBKEY**___**fp()**, **d2i**___**DSAPublicKey()**, **d2i**___**ECParameters()**, **d2i**___**ECPrivateKey()**,
           **d2i**___**ECPrivateKey**___**bio()**, **d2i**___**ECPrivateKey**___**fp()**, **d2i**___**EC**___**PUBKEY()**, **d2i**___**EC**___**PUBKEY**___**bio()**,
           **d2i**___**EC**___**PUBKEY**___**fp()**, **o2i**___**ECPublicKey()**, **d2i**___**RSAPrivateKey()**, **d2i**___**RSAPrivateKey**___**bio()**,
           **d2i**___**RSAPrivateKey**___**fp()**, **d2i**___**RSA**___**PUBKEY()**, **d2i**___**RSA**___**PUBKEY**___**bio()**, **d2i**___**RSA**___**PUBKEY**___**fp()**,
           **d2i**___**RSAPublicKey()**, **d2i**___**RSAPublicKey**___**bio()**, **d2i**___**RSAPublicKey**___**fp()**

           See "Deprecated i2d and d2i functions for low-level key types"

       •   **DES**___**crypt()**, **DES**___**fcrypt()**, **DES**___**encrypt1()**, **DES**___**encrypt2()**, **DES**___**encrypt3()**,
           **DES**___**decrypt3()**, **DES**___**ede3**___**cbc**___**encrypt()**, **DES**___**ede3**___**cfb64**___**encrypt()**,
           **DES**___**ede3**___**cfb**___**encrypt()**,**DES**___**ede3**___**ofb64**___**encrypt()**, **DES**___**ecb**___**encrypt()**, **DES**___**ecb3**___**encrypt()**,
           **DES**___**ofb64**___**encrypt()**, **DES**___**ofb**___**encrypt()**, DES_cfb64_encrypt **DES**___**cfb**___**encrypt()**,
           **DES**___**cbc**___**encrypt()**, **DES**___**ncbc**___**encrypt()**, **DES**___**pcbc**___**encrypt()**, **DES**___**xcbc**___**encrypt()**,
           **DES**___**cbc**___**cksum()**, **DES**___**quad**___**cksum()**, **DES**___**check**___**key**___**parity()**, **DES**___**is**___**weak**___**key()**,
           **DES**___**key**___**sched()**, **DES**___**options()**, **DES**___**random**___**key()**, **DES**___**set**___**key()**, **DES**___**set**___**key**___**checked()**,
           **DES**___**set**___**key**___**unchecked()**, **DES**___**set**___**odd**___**parity()**, **DES**___**string**___**to**___**2keys()**, **DES**___**string**___**to**___**key()**

           See "Deprecated low-level encryption functions".  Algorithms for "DESX-CBC", "DES-ECB",
           "DES-CBC", "DES-OFB", "DES-CFB", "DES-CFB1" and "DES-CFB8" have been moved to the Legacy
           Provider.

       •   **DH**___**bits()**, **DH**___**security**___**bits()**, **DH**___**size()**

           Use **EVP**___**PKEY**___**get**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown), **EVP**___**PKEY**___**get**___**security**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown) and **EVP**___**PKEY**___**get**___**[size**(3)](https://www.chedong.com/phpMan.php/man/size/3/markdown).

       •   **DH**___**check()**, **DH**___**check**___**ex()**, **DH**___**check**___**params()**, **DH**___**check**___**params**___**ex()**, **DH**___**check**___**pub**___**key()**,
           **DH**___**check**___**pub**___**key**___**ex()**

           See "Deprecated low-level validation functions"

       •   **DH**___**clear**___**flags()**, **DH**___**test**___**flags()**, **DH**___**set**___**flags()**

           The **DH**___**FLAG**___**CACHE**___**MONT**___**P** flag has been deprecated without replacement.  The
           **DH**___**FLAG**___**TYPE**___**DH** and **DH**___**FLAG**___**TYPE**___**DHX** have been deprecated.  Use **EVP**___**PKEY**___**is**___**a()** to
           determine the type of a key.  There is no replacement for setting these flags.

       •   **DH**___**compute**___**key()** **DH**___**compute**___**key**___**padded()**

           See "Deprecated low-level key exchange functions".

       •   **DH**___**new()**, **DH**___**new**___**by**___**nid()**, **DH**___**free()**, **DH**___**up**___**ref()**

           See "Deprecated low-level object creation"

       •   **DH**___**generate**___**key()**, **DH**___**generate**___**parameters**___**ex()**

           See "Deprecated low-level key generation functions".

       •   **DH**___**get0**___**pqg()**, **DH**___**get0**___**p()**, **DH**___**get0**___**q()**, **DH**___**get0**___**g()**, **DH**___**get0**___**key()**, **DH**___**get0**___**priv**___**key()**,
           **DH**___**get0**___**pub**___**key()**, **DH**___**get**___**length()**, **DH**___**get**___**nid()**

           See "Deprecated low-level key parameter getters"

       •   **DH**___**get**___**1024**___**160()**, **DH**___**get**___**2048**___**224()**, **DH**___**get**___**2048**___**256()**

           Applications should instead set the **OSSL**___**PKEY**___**PARAM**___**GROUP**___**NAME** as specified in "DH
           parameters" in **EVP**___**[PKEY-DH**(7)](https://www.chedong.com/phpMan.php/man/PKEY-DH/7/markdown)) to one of "dh_1024_160", "dh_2048_224" or "dh_2048_256"
           when generating a DH key.

       •   **DH**___**KDF**___**X9**___**42()**

           Applications should use **EVP**___**PKEY**___**CTX**___**set**___**dh**___**kdf**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown) instead.

       •   **DH**___**get**___**default**___**method()**, **DH**___**get0**___**engine()**, DH_meth_*(), **DH**___**new**___**method()**, **DH**___**OpenSSL()**,
           **DH**___**get**___**ex**___**data()**, **DH**___**set**___**default**___**method()**, **DH**___**set**___**method()**, **DH**___**set**___**ex**___**data()**

           See "Providers are a replacement for engines and low-level method overrides"

       •   **DHparams**___**print()**, **DHparams**___**print**___**fp()**

           See "Deprecated low-level key printing functions"

       •   **DH**___**set0**___**key()**, **DH**___**set0**___**pqg()**, **DH**___**set**___**length()**

           See "Deprecated low-level key parameter setters"

       •   **DSA**___**bits()**, **DSA**___**security**___**bits()**, **DSA**___**size()**

           Use **EVP**___**PKEY**___**get**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown), **EVP**___**PKEY**___**get**___**security**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown) and **EVP**___**PKEY**___**get**___**[size**(3)](https://www.chedong.com/phpMan.php/man/size/3/markdown).

       •   **DHparams**___**dup()**, **DSA**___**dup**___**DH()**

           There is no direct replacement. Applications may use **EVP**___**PKEY**___**copy**___**[parameters**(3)](https://www.chedong.com/phpMan.php/man/parameters/3/markdown) and
           **EVP**___**PKEY**___**[dup**(3)](https://www.chedong.com/phpMan.php/man/dup/3/markdown) instead.

       •   **DSA**___**generate**___**key()**, **DSA**___**generate**___**parameters**___**ex()**

           See "Deprecated low-level key generation functions".

       •   **DSA**___**get0**___**engine()**, **DSA**___**get**___**default**___**method()**, **DSA**___**get**___**ex**___**data()**, **DSA**___**get**___**method()**,
           DSA_meth_*(), **DSA**___**new**___**method()**, **DSA**___**OpenSSL()**, **DSA**___**set**___**default**___**method()**,
           **DSA**___**set**___**ex**___**data()**, **DSA**___**set**___**method()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **DSA**___**get0**___**p()**, **DSA**___**get0**___**q()**, **DSA**___**get0**___**g()**, **DSA**___**get0**___**pqg()**, **DSA**___**get0**___**key()**,
           **DSA**___**get0**___**priv**___**key()**, **DSA**___**get0**___**pub**___**key()**

           See "Deprecated low-level key parameter getters".

       •   **DSA**___**new()**, **DSA**___**free()**, **DSA**___**up**___**ref()**

           See "Deprecated low-level object creation"

       •   **DSAparams**___**dup()**

           There is no direct replacement. Applications may use **EVP**___**PKEY**___**copy**___**[parameters**(3)](https://www.chedong.com/phpMan.php/man/parameters/3/markdown) and
           **EVP**___**PKEY**___**[dup**(3)](https://www.chedong.com/phpMan.php/man/dup/3/markdown) instead.

       •   **DSAparams**___**print()**, **DSAparams**___**print**___**fp()**, **DSA**___**print()**, **DSA**___**print**___**fp()**

           See "Deprecated low-level key printing functions"

       •   **DSA**___**set0**___**key()**, **DSA**___**set0**___**pqg()**

           See "Deprecated low-level key parameter setters"

       •   **DSA**___**set**___**flags()**, **DSA**___**clear**___**flags()**, **DSA**___**test**___**flags()**

           The **DSA**___**FLAG**___**CACHE**___**MONT**___**P** flag has been deprecated without replacement.

       •   **DSA**___**sign()**, **DSA**___**do**___**sign()**, **DSA**___**sign**___**setup()**, **DSA**___**verify()**, **DSA**___**do**___**verify()**

           See "Deprecated low-level signing functions".

       •   **ECDH**___**compute**___**key()**

           See "Deprecated low-level key exchange functions".

       •   **ECDH**___**KDF**___**X9**___**62()**

           Applications may either set this using the helper function
           **EVP**___**PKEY**___**CTX**___**set**___**ecdh**___**kdf**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown) or by setting an **OSSL**___**PARAM** using the "kdf-type" as
           shown in "EXAMPLES" in **EVP**___**[KEYEXCH-ECDH**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-ECDH/7/markdown)

       •   **ECDSA**___**sign()**, **ECDSA**___**sign**___**ex()**, **ECDSA**___**sign**___**setup()**, **ECDSA**___**do**___**sign()**, **ECDSA**___**do**___**sign**___**ex()**,
           **ECDSA**___**verify()**, **ECDSA**___**do**___**verify()**

           See "Deprecated low-level signing functions".

       •   **ECDSA**___**size()**

           Applications should use **EVP**___**PKEY**___**get**___**[size**(3)](https://www.chedong.com/phpMan.php/man/size/3/markdown).

       •   **EC**___**GF2m**___**simple**___**method()**, **EC**___**GFp**___**mont**___**method()**, **EC**___**GFp**___**nist**___**method()**,
           **EC**___**GFp**___**nistp224**___**method()**, **EC**___**GFp**___**nistp256**___**method()**, **EC**___**GFp**___**nistp521**___**method()**,
           **EC**___**GFp**___**simple**___**method()**

           There are no replacements for these functions. Applications should rely on the library
           automatically assigning a suitable method internally when an EC_GROUP is constructed.

       •   **EC**___**GROUP**___**clear**___**free()**

           Use **EC**___**GROUP**___**[free**(3)](https://www.chedong.com/phpMan.php/man/free/3/markdown) instead.

       •   **EC**___**GROUP**___**get**___**curve**___**GF2m()**, **EC**___**GROUP**___**get**___**curve**___**GFp()**, **EC**___**GROUP**___**set**___**curve**___**GF2m()**,
           **EC**___**GROUP**___**set**___**curve**___**GFp()**

           Applications should use **EC**___**GROUP**___**get**___**[curve**(3)](https://www.chedong.com/phpMan.php/man/curve/3/markdown) and **EC**___**GROUP**___**set**___**[curve**(3)](https://www.chedong.com/phpMan.php/man/curve/3/markdown).

       •   **EC**___**GROUP**___**have**___**precompute**___**mult()**, **EC**___**GROUP**___**precompute**___**mult()**, **EC**___**KEY**___**precompute**___**mult()**

           These functions are not widely used. Applications should instead switch to named curves
           which OpenSSL has hardcoded lookup tables for.

       •   **EC**___**GROUP**___**new()**, **EC**___**GROUP**___**method**___**of()**, **EC**___**POINT**___**method**___**of()**

           EC_METHOD is now an internal-only concept and a suitable EC_METHOD is assigned internally
           without application intervention.  Users of **EC**___**GROUP**___**new()** should switch to a different
           suitable constructor.

       •   **EC**___**KEY**___**can**___**sign()**

           Applications should use **EVP**___**PKEY**___**can**___**[sign**(3)](https://www.chedong.com/phpMan.php/man/sign/3/markdown) instead.

       •   **EC**___**KEY**___**check**___**key()**

           See "Deprecated low-level validation functions"

       •   **EC**___**KEY**___**set**___**flags()**, **EC**___**KEY**___**get**___**flags()**, **EC**___**KEY**___**clear**___**flags()**

           See "Common EC parameters" in **EVP**___**[PKEY-EC**(7)](https://www.chedong.com/phpMan.php/man/PKEY-EC/7/markdown) which handles flags as seperate parameters
           for **OSSL**___**PKEY**___**PARAM**___**EC**___**POINT**___**CONVERSION**___**FORMAT**, **OSSL**___**PKEY**___**PARAM**___**EC**___**GROUP**___**CHECK**___**TYPE**,
           **OSSL**___**PKEY**___**PARAM**___**EC**___**ENCODING**, **OSSL**___**PKEY**___**PARAM**___**USE**___**COFACTOR**___**ECDH** and
           **OSSL**___**PKEY**___**PARAM**___**EC**___**INCLUDE**___**PUBLIC**.  See also "EXAMPLES" in **EVP**___**[PKEY-EC**(7)](https://www.chedong.com/phpMan.php/man/PKEY-EC/7/markdown)

       •   **EC**___**KEY**___**dup()**, **EC**___**KEY**___**copy()**

           There is no direct replacement. Applications may use **EVP**___**PKEY**___**copy**___**[parameters**(3)](https://www.chedong.com/phpMan.php/man/parameters/3/markdown) and
           **EVP**___**PKEY**___**[dup**(3)](https://www.chedong.com/phpMan.php/man/dup/3/markdown) instead.

       •   **EC**___**KEY**___**decoded**___**from**___**explicit**___**params()**

           There is no replacement.

       •   **EC**___**KEY**___**generate**___**key()**

           See "Deprecated low-level key generation functions".

       •   **EC**___**KEY**___**get0**___**group()**, **EC**___**KEY**___**get0**___**private**___**key()**, **EC**___**KEY**___**get0**___**public**___**key()**,
           **EC**___**KEY**___**get**___**conv**___**form()**, **EC**___**KEY**___**get**___**enc**___**flags()**

           See "Deprecated low-level key parameter getters".

       •   **EC**___**KEY**___**get0**___**engine()**, **EC**___**KEY**___**get**___**default**___**method()**, **EC**___**KEY**___**get**___**method()**,
           **EC**___**KEY**___**new**___**method()**, **EC**___**KEY**___**get**___**ex**___**data()**, **EC**___**KEY**___**OpenSSL()**, **EC**___**KEY**___**set**___**ex**___**data()**,
           **EC**___**KEY**___**set**___**default**___**method()**, EC_KEY_METHOD_*(), **EC**___**KEY**___**set**___**method()**

           See "Providers are a replacement for engines and low-level method overrides"

       •   **EC**___**METHOD**___**get**___**field**___**type()**

           Use **EC**___**GROUP**___**get**___**field**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown) instead.  See "Providers are a replacement for engines and
           low-level method overrides"

       •   **EC**___**KEY**___**key2buf()**, **EC**___**KEY**___**oct2key()**, **EC**___**KEY**___**oct2priv()**, **EC**___**KEY**___**priv2buf()**,
           **EC**___**KEY**___**priv2oct()**

           There are no replacements for these.

       •   **EC**___**KEY**___**new()**, **EC**___**KEY**___**new**___**by**___**curve**___**name()**, **EC**___**KEY**___**free()**, **EC**___**KEY**___**up**___**ref()**

           See "Deprecated low-level object creation"

       •   **EC**___**KEY**___**print()**, **EC**___**KEY**___**print**___**fp()**

           See "Deprecated low-level key printing functions"

       •   **EC**___**KEY**___**set**___**asn1**___**flag()**, **EC**___**KEY**___**set**___**conv**___**form()**, **EC**___**KEY**___**set**___**enc**___**flags()**

           See "Deprecated low-level key parameter setters".

       •   **EC**___**KEY**___**set**___**group()**, **EC**___**KEY**___**set**___**private**___**key()**, **EC**___**KEY**___**set**___**public**___**key()**,
           **EC**___**KEY**___**set**___**public**___**key**___**affine**___**coordinates()**

           See "Deprecated low-level key parameter setters".

       •   **ECParameters**___**print()**, **ECParameters**___**print**___**fp()**, **ECPKParameters**___**print()**,
           **ECPKParameters**___**print**___**fp()**

           See "Deprecated low-level key printing functions"

       •   **EC**___**POINT**___**bn2point()**, **EC**___**POINT**___**point2bn()**

           These functions were not particularly useful, since EC point serialization formats are
           not individual big-endian integers.

       •   **EC**___**POINT**___**get**___**affine**___**coordinates**___**GF2m()**, **EC**___**POINT**___**get**___**affine**___**coordinates**___**GFp()**,
           **EC**___**POINT**___**set**___**affine**___**coordinates**___**GF2m()**, **EC**___**POINT**___**set**___**affine**___**coordinates**___**GFp()**

           Applications should use **EC**___**POINT**___**get**___**affine**___**[coordinates**(3)](https://www.chedong.com/phpMan.php/man/coordinates/3/markdown) and
           **EC**___**POINT**___**set**___**affine**___**[coordinates**(3)](https://www.chedong.com/phpMan.php/man/coordinates/3/markdown) instead.

       •   **EC**___**POINT**___**get**___**Jprojective**___**coordinates**___**GFp()**, **EC**___**POINT**___**set**___**Jprojective**___**coordinates**___**GFp()**

           These functions are not widely used. Applications should instead use the
           **EC**___**POINT**___**set**___**affine**___**[coordinates**(3)](https://www.chedong.com/phpMan.php/man/coordinates/3/markdown) and **EC**___**POINT**___**get**___**affine**___**[coordinates**(3)](https://www.chedong.com/phpMan.php/man/coordinates/3/markdown) functions.

       •   **EC**___**POINT**___**make**___**affine()**, **EC**___**POINTs**___**make**___**affine()**

           There is no replacement. These functions were not widely used, and OpenSSL automatically
           performs this conversion when needed.

       •   **EC**___**POINT**___**set**___**compressed**___**coordinates**___**GF2m()**, **EC**___**POINT**___**set**___**compressed**___**coordinates**___**GFp()**

           Applications should use **EC**___**POINT**___**set**___**compressed**___**[coordinates**(3)](https://www.chedong.com/phpMan.php/man/coordinates/3/markdown) instead.

       •   **EC**___**POINTs**___**mul()**

           This function is not widely used. Applications should instead use the **EC**___**POINT**___**[mul**(3)](https://www.chedong.com/phpMan.php/man/mul/3/markdown)
           function.

       •   **ENGINE**___***()**

           All engine functions are deprecated. An engine should be rewritten as a provider.  See
           "Providers are a replacement for engines and low-level method overrides".

       •   **ERR**___**load**___***()**, **ERR**___**func**___**error**___**string()**, **ERR**___**get**___**error**___**line()**, **ERR**___**get**___**error**___**line**___**data()**,
           **ERR**___**get**___**state()**

           OpenSSL now loads error strings automatically so these functions are not needed.

       •   **ERR**___**peek**___**error**___**line**___**data()**, **ERR**___**peek**___**last**___**error**___**line**___**data()**

           The new functions are **ERR**___**peek**___**error**___**[func**(3)](https://www.chedong.com/phpMan.php/man/func/3/markdown), **ERR**___**peek**___**last**___**error**___**[func**(3)](https://www.chedong.com/phpMan.php/man/func/3/markdown),
           **ERR**___**peek**___**error**___**[data**(3)](https://www.chedong.com/phpMan.php/man/data/3/markdown), **ERR**___**peek**___**last**___**error**___**[data**(3)](https://www.chedong.com/phpMan.php/man/data/3/markdown), **ERR**___**get**___**error**___**[all**(3)](https://www.chedong.com/phpMan.php/man/all/3/markdown),
           **ERR**___**peek**___**error**___**[all**(3)](https://www.chedong.com/phpMan.php/man/all/3/markdown) and **ERR**___**peek**___**last**___**error**___**[all**(3)](https://www.chedong.com/phpMan.php/man/all/3/markdown).  Applications should use
           **ERR**___**get**___**error**___**[all**(3)](https://www.chedong.com/phpMan.php/man/all/3/markdown), or pick information with ERR_peek functions and finish off with
           getting the error code by using **ERR**___**get**___**[error**(3)](https://www.chedong.com/phpMan.php/man/error/3/markdown).

       •   **EVP**___**CIPHER**___**CTX**___**iv()**, **EVP**___**CIPHER**___**CTX**___**iv**___**noconst()**, **EVP**___**CIPHER**___**CTX**___**original**___**iv()**

           Applications should instead use **EVP**___**CIPHER**___**CTX**___**get**___**updated**___**[iv**(3)](https://www.chedong.com/phpMan.php/man/iv/3/markdown),
           **EVP**___**CIPHER**___**CTX**___**get**___**updated**___**[iv**(3)](https://www.chedong.com/phpMan.php/man/iv/3/markdown) and **EVP**___**CIPHER**___**CTX**___**get**___**original**___**[iv**(3)](https://www.chedong.com/phpMan.php/man/iv/3/markdown) respectively.  See
           **EVP**___**CIPHER**___**CTX**___**get**___**original**___**[iv**(3)](https://www.chedong.com/phpMan.php/man/iv/3/markdown) for further information.

       •   **EVP**___**CIPHER**___**meth**___***()**, **EVP**___**MD**___**CTX**___**set**___**update**___**fn()**, **EVP**___**MD**___**CTX**___**update**___**fn()**, **EVP**___**MD**___**meth**___***()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **EVP**___**PKEY**___**CTRL**___**PKCS7**___**ENCRYPT()**, **EVP**___**PKEY**___**CTRL**___**PKCS7**___**DECRYPT()**, **EVP**___**PKEY**___**CTRL**___**PKCS7**___**SIGN()**,
           **EVP**___**PKEY**___**CTRL**___**CMS**___**ENCRYPT()**, **EVP**___**PKEY**___**CTRL**___**CMS**___**DECRYPT()**, and **EVP**___**PKEY**___**CTRL**___**CMS**___**SIGN()**

           These control operations are not invoked by the OpenSSL library anymore and are replaced
           by direct checks of the key operation against the key type when the operation is
           initialized.

       •   **EVP**___**PKEY**___**CTX**___**get0**___**dh**___**kdf**___**ukm()**, **EVP**___**PKEY**___**CTX**___**get0**___**ecdh**___**kdf**___**ukm()**

           See the "kdf-ukm" item in "DH key exchange parameters" in **EVP**___**[KEYEXCH-DH**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-DH/7/markdown) and "ECDH Key
           Exchange parameters" in **EVP**___**[KEYEXCH-ECDH**(7)](https://www.chedong.com/phpMan.php/man/KEYEXCH-ECDH/7/markdown).  These functions are obsolete and should not
           be required.

       •   **EVP**___**PKEY**___**CTX**___**set**___**rsa**___**keygen**___**pubexp()**

           Applications should use **EVP**___**PKEY**___**CTX**___**set1**___**rsa**___**keygen**___**[pubexp**(3)](https://www.chedong.com/phpMan.php/man/pubexp/3/markdown) instead.

       •   **EVP**___**PKEY**___**cmp()**, **EVP**___**PKEY**___**cmp**___**parameters()**

           Applications should use **EVP**___**PKEY**___**[eq**(3)](https://www.chedong.com/phpMan.php/man/eq/3/markdown) and **EVP**___**PKEY**___**parameters**___**[eq**(3)](https://www.chedong.com/phpMan.php/man/eq/3/markdown) instead.  See
           **EVP**___**PKEY**___**copy**___**[parameters**(3)](https://www.chedong.com/phpMan.php/man/parameters/3/markdown) for further details.

       •   **EVP**___**PKEY**___**encrypt**___**old()**, **EVP**___**PKEY**___**decrypt**___**old()**,

           Applications should use **EVP**___**PKEY**___**encrypt**___**[init**(3)](https://www.chedong.com/phpMan.php/man/init/3/markdown) and **EVP**___**PKEY**___**[encrypt**(3)](https://www.chedong.com/phpMan.php/man/encrypt/3/markdown) or
           **EVP**___**PKEY**___**decrypt**___**[init**(3)](https://www.chedong.com/phpMan.php/man/init/3/markdown) and **EVP**___**PKEY**___**[decrypt**(3)](https://www.chedong.com/phpMan.php/man/decrypt/3/markdown) instead.

       •   **EVP**___**PKEY**___**get0()**

           This function returns NULL if the key comes from a provider.

       •   **EVP**___**PKEY**___**get0**___**DH()**, **EVP**___**PKEY**___**get0**___**DSA()**, **EVP**___**PKEY**___**get0**___**EC**___**KEY()**, **EVP**___**PKEY**___**get0**___**RSA()**,
           **EVP**___**PKEY**___**get1**___**DH()**, **EVP**___**PKEY**___**get1**___**DSA()**, EVP_PKEY_get1_EC_KEY and **EVP**___**PKEY**___**get1**___**RSA()**,
           **EVP**___**PKEY**___**get0**___**hmac()**, **EVP**___**PKEY**___**get0**___**poly1305()**, **EVP**___**PKEY**___**get0**___**siphash()**

           See "Functions that return an internal key should be treated as read only".

       •   **EVP**___**PKEY**___**meth**___***()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **EVP**___**PKEY**___**new**___**CMAC**___**key()**

           See "Deprecated low-level MAC functions".

       •   **EVP**___**PKEY**___**assign()**, **EVP**___**PKEY**___**set1**___**DH()**, **EVP**___**PKEY**___**set1**___**DSA()**, **EVP**___**PKEY**___**set1**___**EC**___**KEY()**,
           **EVP**___**PKEY**___**set1**___**RSA()**

           See "Deprecated low-level key object getters and setters"

       •   **EVP**___**PKEY**___**set1**___**tls**___**encodedpoint()** **EVP**___**PKEY**___**get1**___**tls**___**encodedpoint()**

           These functions were previously used by libssl to set or get an encoded public key
           into/from an EVP_PKEY object. With OpenSSL 3.0 these are replaced by the more generic
           functions **EVP**___**PKEY**___**set1**___**encoded**___**public**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown) and **EVP**___**PKEY**___**get1**___**encoded**___**public**___**[key**(3)](https://www.chedong.com/phpMan.php/man/key/3/markdown).
           The old versions have been converted to deprecated macros that just call the new
           functions.

       •   **EVP**___**PKEY**___**set1**___**engine()**, **EVP**___**PKEY**___**get0**___**engine()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **EVP**___**PKEY**___**set**___**alias**___**type()**

           This function has been removed. There is no replacement.  See "**EVP**___**PKEY**___**set**___**alias**___**type()**
           method has been removed"

       •   **HMAC**___**Init**___**ex()**, **HMAC**___**Update()**, **HMAC**___**Final()**, **HMAC**___**size()**

           See "Deprecated low-level MAC functions".

       •   **HMAC**___**CTX**___**new()**, **HMAC**___**CTX**___**free()**, **HMAC**___**CTX**___**copy()**, **HMAC**___**CTX**___**reset()**, **HMAC**___**CTX**___**set**___**flags()**,
           **HMAC**___**CTX**___**get**___**md()**

           See "Deprecated low-level MAC functions".

       •   **i2d**___**DHparams()**, **i2d**___**DHxparams()**

           See "Deprecated low-level key reading and writing functions" and "Migration" in
           **d2i**___**[RSAPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/RSAPrivateKey/3/markdown)

       •   **i2d**___**DSAparams()**, **i2d**___**DSAPrivateKey()**, **i2d**___**DSAPrivateKey**___**bio()**, **i2d**___**DSAPrivateKey**___**fp()**,
           **i2d**___**DSA**___**PUBKEY()**, **i2d**___**DSA**___**PUBKEY**___**bio()**, **i2d**___**DSA**___**PUBKEY**___**fp()**, **i2d**___**DSAPublicKey()**

           See "Deprecated low-level key reading and writing functions" and "Migration" in
           **d2i**___**[RSAPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/RSAPrivateKey/3/markdown)

       •   **i2d**___**ECParameters()**, **i2d**___**ECPrivateKey()**, **i2d**___**ECPrivateKey**___**bio()**, **i2d**___**ECPrivateKey**___**fp()**,
           **i2d**___**EC**___**PUBKEY()**, **i2d**___**EC**___**PUBKEY**___**bio()**, **i2d**___**EC**___**PUBKEY**___**fp()**, **i2o**___**ECPublicKey()**

           See "Deprecated low-level key reading and writing functions" and "Migration" in
           **d2i**___**[RSAPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/RSAPrivateKey/3/markdown)

       •   **i2d**___**RSAPrivateKey()**, **i2d**___**RSAPrivateKey**___**bio()**, **i2d**___**RSAPrivateKey**___**fp()**, **i2d**___**RSA**___**PUBKEY()**,
           **i2d**___**RSA**___**PUBKEY**___**bio()**, **i2d**___**RSA**___**PUBKEY**___**fp()**, **i2d**___**RSAPublicKey()**, **i2d**___**RSAPublicKey**___**bio()**,
           **i2d**___**RSAPublicKey**___**fp()**

           See "Deprecated low-level key reading and writing functions" and "Migration" in
           **d2i**___**[RSAPrivateKey**(3)](https://www.chedong.com/phpMan.php/man/RSAPrivateKey/3/markdown)

       •   **IDEA**___**encrypt()**, **IDEA**___**set**___**decrypt**___**key()**, **IDEA**___**set**___**encrypt**___**key()**, **IDEA**___**cbc**___**encrypt()**,
           **IDEA**___**cfb64**___**encrypt()**, **IDEA**___**ecb**___**encrypt()**, **IDEA**___**ofb64**___**encrypt()**

           See "Deprecated low-level encryption functions".  IDEA has been moved to the Legacy
           Provider.

       •   **IDEA**___**options()**

           There is no replacement. This function returned a constant string.

       •   **MD2()**, **MD2**___**Init()**, **MD2**___**Update()**, **MD2**___**Final()**

           See "Deprecated low-level encryption functions".  MD2 has been moved to the Legacy
           Provider.

       •   **MD2**___**options()**

           There is no replacement. This function returned a constant string.

       •   **MD4()**, **MD4**___**Init()**, **MD4**___**Update()**, **MD4**___**Final()**, **MD4**___**Transform()**

           See "Deprecated low-level encryption functions".  MD4 has been moved to the Legacy
           Provider.

       •   **MDC2()**, **MDC2**___**Init()**, **MDC2**___**Update()**, **MDC2**___**Final()**

           See "Deprecated low-level encryption functions".  MDC2 has been moved to the Legacy
           Provider.

       •   **MD5()**, **MD5**___**Init()**, **MD5**___**Update()**, **MD5**___**Final()**, **MD5**___**Transform()**

           See "Deprecated low-level encryption functions".

       •   **NCONF**___**WIN32()**

           This undocumented function has no replacement.  See "HISTORY" in [**config**(5)](https://www.chedong.com/phpMan.php/man/config/5/markdown) for more
           details.

       •   **OCSP**___**parse**___**url()**

           Use **OSSL**___**HTTP**___**parse**___**[url**(3)](https://www.chedong.com/phpMan.php/man/url/3/markdown) instead.

       •   **OCSP**___**REQ**___**CTX** type and **OCSP**___**REQ**___**CTX**___***()** functions

           These methods were used to collect all necessary data to form a HTTP request, and to
           perform the HTTP transfer with that request.  With OpenSSL 3.0, the type is
           **OSSL**___**HTTP**___**REQ**___**CTX**, and the deprecated functions are replaced with **OSSL**___**HTTP**___**REQ**___**CTX**___***()**.
           See **OSSL**___**HTTP**___**REQ**___**[CTX**(3)](https://www.chedong.com/phpMan.php/man/CTX/3/markdown) for additional details.

       •   **OPENSSL**___**fork**___**child()**, **OPENSSL**___**fork**___**parent()**, **OPENSSL**___**fork**___**prepare()**

           There is no replacement for these functions. These pthread fork support methods were
           unused by OpenSSL.

       •   **OSSL**___**STORE**___**ctrl()**, **OSSL**___**STORE**___**do**___**all**___**loaders()**, **OSSL**___**STORE**___**LOADER**___**get0**___**engine()**,
           **OSSL**___**STORE**___**LOADER**___**get0**___**scheme()**, **OSSL**___**STORE**___**LOADER**___**new()**, **OSSL**___**STORE**___**LOADER**___**set**___**attach()**,
           **OSSL**___**STORE**___**LOADER**___**set**___**close()**, **OSSL**___**STORE**___**LOADER**___**set**___**ctrl()**, **OSSL**___**STORE**___**LOADER**___**set**___**eof()**,
           **OSSL**___**STORE**___**LOADER**___**set**___**error()**, **OSSL**___**STORE**___**LOADER**___**set**___**expect()**,
           **OSSL**___**STORE**___**LOADER**___**set**___**find()**, **OSSL**___**STORE**___**LOADER**___**set**___**load()**, **OSSL**___**STORE**___**LOADER**___**set**___**open()**,
           **OSSL**___**STORE**___**LOADER**___**set**___**open**___**ex()**, **OSSL**___**STORE**___**register**___**loader()**,
           **OSSL**___**STORE**___**unregister**___**loader()**, **OSSL**___**STORE**___**vctrl()**

           These functions helped applications and engines create loaders for schemes they
           supported.  These are all deprecated and discouraged in favour of provider
           implementations, see [**provider-storemgmt**(7)](https://www.chedong.com/phpMan.php/man/provider-storemgmt/7/markdown).

       •   **PEM**___**read**___**DHparams()**, **PEM**___**read**___**bio**___**DHparams()**, **PEM**___**read**___**DSAparams()**,
           **PEM**___**read**___**bio**___**DSAparams()**, **PEM**___**read**___**DSAPrivateKey()**, **PEM**___**read**___**DSA**___**PUBKEY()**,
           PEM_read_bio_DSAPrivateKey and **PEM**___**read**___**bio**___**DSA**___**PUBKEY()**, **PEM**___**read**___**ECPKParameters()**,
           **PEM**___**read**___**ECPrivateKey()**, **PEM**___**read**___**EC**___**PUBKEY()**, **PEM**___**read**___**bio**___**ECPKParameters()**,
           **PEM**___**read**___**bio**___**ECPrivateKey()**, **PEM**___**read**___**bio**___**EC**___**PUBKEY()**, **PEM**___**read**___**RSAPrivateKey()**,
           **PEM**___**read**___**RSA**___**PUBKEY()**, **PEM**___**read**___**RSAPublicKey()**, **PEM**___**read**___**bio**___**RSAPrivateKey()**,
           **PEM**___**read**___**bio**___**RSA**___**PUBKEY()**, **PEM**___**read**___**bio**___**RSAPublicKey()**, **PEM**___**write**___**bio**___**DHparams()**,
           **PEM**___**write**___**bio**___**DHxparams()**, **PEM**___**write**___**DHparams()**, **PEM**___**write**___**DHxparams()**,
           **PEM**___**write**___**DSAparams()**, **PEM**___**write**___**DSAPrivateKey()**, **PEM**___**write**___**DSA**___**PUBKEY()**,
           **PEM**___**write**___**bio**___**DSAparams()**, **PEM**___**write**___**bio**___**DSAPrivateKey()**, **PEM**___**write**___**bio**___**DSA**___**PUBKEY()**,
           **PEM**___**write**___**ECPKParameters()**, **PEM**___**write**___**ECPrivateKey()**, **PEM**___**write**___**EC**___**PUBKEY()**,
           **PEM**___**write**___**bio**___**ECPKParameters()**, **PEM**___**write**___**bio**___**ECPrivateKey()**, **PEM**___**write**___**bio**___**EC**___**PUBKEY()**,
           **PEM**___**write**___**RSAPrivateKey()**, **PEM**___**write**___**RSA**___**PUBKEY()**, **PEM**___**write**___**RSAPublicKey()**,
           **PEM**___**write**___**bio**___**RSAPrivateKey()**, **PEM**___**write**___**bio**___**RSA**___**PUBKEY()**, **PEM**___**write**___**bio**___**RSAPublicKey()**,

           See "Deprecated low-level key reading and writing functions"

       •   **PKCS1**___**MGF1()**

           See "Deprecated low-level encryption functions".

       •   **RAND**___**get**___**rand**___**method()**, **RAND**___**set**___**rand**___**method()**, **RAND**___**OpenSSL()**, **RAND**___**set**___**rand**___**engine()**

           Applications should instead use **RAND**___**set**___**DRBG**___**[type**(3)](https://www.chedong.com/phpMan.php/man/type/3/markdown), **EVP**___**[RAND**(3)](https://www.chedong.com/phpMan.php/man/RAND/3/markdown) and **EVP**___**[RAND**(7)](https://www.chedong.com/phpMan.php/man/RAND/7/markdown).  See
           **RAND**___**set**___**rand**___**[method**(3)](https://www.chedong.com/phpMan.php/man/method/3/markdown) for more details.

       •   **RC2**___**encrypt()**, **RC2**___**decrypt()**, **RC2**___**set**___**key()**, **RC2**___**cbc**___**encrypt()**, **RC2**___**cfb64**___**encrypt()**,
           **RC2**___**ecb**___**encrypt()**, **RC2**___**ofb64**___**encrypt()**, **RC4()**, **RC4**___**set**___**key()**, **RC4**___**options()**,
           **RC5**___**32**___**encrypt()**, **RC5**___**32**___**set**___**key()**, **RC5**___**32**___**decrypt()**, **RC5**___**32**___**cbc**___**encrypt()**,
           **RC5**___**32**___**cfb64**___**encrypt()**, **RC5**___**32**___**ecb**___**encrypt()**, **RC5**___**32**___**ofb64**___**encrypt()**

           See "Deprecated low-level encryption functions".  The Algorithms "RC2", "RC4" and "RC5"
           have been moved to the Legacy Provider.

       •   **RIPEMD160()**, **RIPEMD160**___**Init()**, **RIPEMD160**___**Update()**, **RIPEMD160**___**Final()**,
           **RIPEMD160**___**Transform()**

           See "Deprecated low-level digest functions".  The RIPE algorithm has been moved to the
           Legacy Provider.

       •   **RSA**___**bits()**, **RSA**___**security**___**bits()**, **RSA**___**size()**

           Use **EVP**___**PKEY**___**get**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown), **EVP**___**PKEY**___**get**___**security**___**[bits**(3)](https://www.chedong.com/phpMan.php/man/bits/3/markdown) and **EVP**___**PKEY**___**get**___**[size**(3)](https://www.chedong.com/phpMan.php/man/size/3/markdown).

       •   **RSA**___**check**___**key()**, **RSA**___**check**___**key**___**ex()**

           See "Deprecated low-level validation functions"

       •   **RSA**___**clear**___**flags()**, **RSA**___**flags()**, **RSA**___**set**___**flags()**, **RSA**___**test**___**flags()**, **RSA**___**setup**___**blinding()**,
           **RSA**___**blinding**___**off()**, **RSA**___**blinding**___**on()**

           All of these RSA flags have been deprecated without replacement:

           **RSA**___**FLAG**___**BLINDING**, **RSA**___**FLAG**___**CACHE**___**PRIVATE**, **RSA**___**FLAG**___**CACHE**___**PUBLIC**, **RSA**___**FLAG**___**EXT**___**PKEY**,
           **RSA**___**FLAG**___**NO**___**BLINDING**, **RSA**___**FLAG**___**THREAD**___**SAFE** **RSA**___**METHOD**___**FLAG**___**NO**___**CHECK**

       •   **RSA**___**generate**___**key**___**ex()**, **RSA**___**generate**___**multi**___**prime**___**key()**

           See "Deprecated low-level key generation functions".

       •   **RSA**___**get0**___**engine()**

           See "Providers are a replacement for engines and low-level method overrides"

       •   **RSA**___**get0**___**crt**___**params()**, **RSA**___**get0**___**d()**, **RSA**___**get0**___**dmp1()**, **RSA**___**get0**___**dmq1()**, **RSA**___**get0**___**e()**,
           **RSA**___**get0**___**factors()**, **RSA**___**get0**___**iqmp()**, **RSA**___**get0**___**key()**, **RSA**___**get0**___**multi**___**prime**___**crt**___**params()**,
           **RSA**___**get0**___**multi**___**prime**___**factors()**, **RSA**___**get0**___**n()**, **RSA**___**get0**___**p()**, **RSA**___**get0**___**pss**___**params()**,
           **RSA**___**get0**___**q()**, **RSA**___**get**___**multi**___**prime**___**extra**___**count()**

           See "Deprecated low-level key parameter getters"

       •   **RSA**___**new()**, **RSA**___**free()**, **RSA**___**up**___**ref()**

           See "Deprecated low-level object creation".

       •   **RSA**___**get**___**default**___**method()**, RSA_get_ex_data and **RSA**___**get**___**method()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **RSA**___**get**___**version()**

           There is no replacement.

       •   **RSA**___**meth**___***()**, **RSA**___**new**___**method()**, RSA_null_method and **RSA**___**PKCS1**___**OpenSSL()**

           See "Providers are a replacement for engines and low-level method overrides".

       •   **RSA**___**padding**___**add**___***()**, **RSA**___**padding**___**check**___***()**

           See "Deprecated low-level signing functions" and "Deprecated low-level encryption
           functions".

       •   **RSA**___**print()**, **RSA**___**print**___**fp()**

           See "Deprecated low-level key printing functions"

       •   **RSA**___**public**___**encrypt()**, **RSA**___**private**___**decrypt()**

           See "Deprecated low-level encryption functions"

       •   **RSA**___**private**___**encrypt()**, **RSA**___**public**___**decrypt()**

           This is equivalent to doing sign and verify recover operations (with a padding mode of
           none). See "Deprecated low-level signing functions".

       •   **RSAPrivateKey**___**dup()**, **RSAPublicKey**___**dup()**

           There is no direct replacement. Applications may use **EVP**___**PKEY**___**[dup**(3)](https://www.chedong.com/phpMan.php/man/dup/3/markdown).

       •   **RSAPublicKey**___**it()**, **RSAPrivateKey**___**it()**

           See "Deprecated low-level key reading and writing functions"

       •   **RSA**___**set0**___**crt**___**params()**, **RSA**___**set0**___**factors()**, **RSA**___**set0**___**key()**, **RSA**___**set0**___**multi**___**prime**___**params()**

           See "Deprecated low-level key parameter setters".

       •   **RSA**___**set**___**default**___**method()**, **RSA**___**set**___**method()**, **RSA**___**set**___**ex**___**data()**

           See "Providers are a replacement for engines and low-level method overrides"

       •   **RSA**___**sign()**, **RSA**___**sign**___**ASN1**___**OCTET**___**STRING()**, **RSA**___**verify()**, **RSA**___**verify**___**ASN1**___**OCTET**___**STRING()**,
           **RSA**___**verify**___**PKCS1**___**PSS()**, **RSA**___**verify**___**PKCS1**___**PSS**___**mgf1()**

           See "Deprecated low-level signing functions".

       •   **RSA**___**X931**___**derive**___**ex()**, **RSA**___**X931**___**generate**___**key**___**ex()**, **RSA**___**X931**___**hash**___**id()**

           There are no replacements for these functions.  X931 padding can be set using "Signature
           Parameters" in **EVP**___**[SIGNATURE-RSA**(7)](https://www.chedong.com/phpMan.php/man/SIGNATURE-RSA/7/markdown).  See **OSSL**___**SIGNATURE**___**PARAM**___**PAD**___**MODE**.

       •   **SEED**___**encrypt()**, **SEED**___**decrypt()**, **SEED**___**set**___**key()**, **SEED**___**cbc**___**encrypt()**,
           **SEED**___**cfb128**___**encrypt()**, **SEED**___**ecb**___**encrypt()**, **SEED**___**ofb128**___**encrypt()**

           See "Deprecated low-level encryption functions".  The SEED algorithm has been moved to
           the Legacy Provider.

       •   **SHA1**___**Init()**, **SHA1**___**Update()**, **SHA1**___**Final()**, **SHA1**___**Transform()**, **SHA224**___**Init()**,
           **SHA224**___**Update()**, **SHA224**___**Final()**, **SHA256**___**Init()**, **SHA256**___**Update()**, **SHA256**___**Final()**,
           **SHA256**___**Transform()**, **SHA384**___**Init()**, **SHA384**___**Update()**, **SHA384**___**Final()**, **SHA512**___**Init()**,
           **SHA512**___**Update()**, **SHA512**___**Final()**, **SHA512**___**Transform()**

           See "Deprecated low-level digest functions".

       •   **SRP**___**Calc**___**A()**, **SRP**___**Calc**___**B()**, **SRP**___**Calc**___**client**___**key()**, **SRP**___**Calc**___**server**___**key()**, **SRP**___**Calc**___**u()**,
           **SRP**___**Calc**___**x()**, **SRP**___**check**___**known**___**gN**___**param()**, **SRP**___**create**___**verifier()**,
           **SRP**___**create**___**verifier**___**BN()**, **SRP**___**get**___**default**___**gN()**, **SRP**___**user**___**pwd**___**free()**, **SRP**___**user**___**pwd**___**new()**,
           **SRP**___**user**___**pwd**___**set0**___**sv()**, **SRP**___**user**___**pwd**___**set1**___**ids()**, **SRP**___**user**___**pwd**___**set**___**gN()**,
           **SRP**___**VBASE**___**add0**___**user()**, **SRP**___**VBASE**___**free()**, **SRP**___**VBASE**___**get1**___**by**___**user()**, **SRP**___**VBASE**___**init()**,
           **SRP**___**VBASE**___**new()**, **SRP**___**Verify**___**A**___**mod**___**N()**, **SRP**___**Verify**___**B**___**mod**___**N()**

           There are no replacements for the SRP functions.

       •   **SSL**___**CTX**___**set**___**tmp**___**dh**___**callback()**, **SSL**___**set**___**tmp**___**dh**___**callback()**, **SSL**___**CTX**___**set**___**tmp**___**dh()**,
           **SSL**___**set**___**tmp**___**dh()**

           These are used to set the Diffie-Hellman (DH) parameters that are to be used by servers
           requiring ephemeral DH keys. Instead applications should consider using the built-in DH
           parameters that are available by calling **SSL**___**CTX**___**set**___**dh**___**[auto**(3)](https://www.chedong.com/phpMan.php/man/auto/3/markdown) or **SSL**___**set**___**dh**___**[auto**(3)](https://www.chedong.com/phpMan.php/man/auto/3/markdown). If
           custom parameters are necessary then applications can use the alternative functions
           **SSL**___**CTX**___**set0**___**tmp**___**dh**___**[pkey**(3)](https://www.chedong.com/phpMan.php/man/pkey/3/markdown) and **SSL**___**set0**___**tmp**___**dh**___**[pkey**(3)](https://www.chedong.com/phpMan.php/man/pkey/3/markdown). There is no direct replacement
           for the "callback" functions. The callback was originally useful in order to have
           different parameters for export and non-export ciphersuites. Export ciphersuites are no
           longer supported by OpenSSL. Use of the callback functions should be replaced by one of
           the other methods described above.

       •   **SSL**___**CTX**___**set**___**tlsext**___**ticket**___**key**___**cb()**

           Use the new **SSL**___**CTX**___**set**___**tlsext**___**ticket**___**key**___**evp**___**[cb**(3)](https://www.chedong.com/phpMan.php/man/cb/3/markdown) function instead.

       •   **WHIRLPOOL()**, **WHIRLPOOL**___**Init()**, **WHIRLPOOL**___**Update()**, **WHIRLPOOL**___**Final()**,
           **WHIRLPOOL**___**BitUpdate()**

           See "Deprecated low-level digest functions".  The Whirlpool algorithm has been moved to
           the Legacy Provider.

       •   **X509**___**certificate**___**type()**

           This was an undocumented function. Applications can use **X509**___**get0**___**[pubkey**(3)](https://www.chedong.com/phpMan.php/man/pubkey/3/markdown) and
           **X509**___**get0**___**[signature**(3)](https://www.chedong.com/phpMan.php/man/signature/3/markdown) instead.

       •   **X509**___**http**___**nbio()**, **X509**___**CRL**___**http**___**nbio()**

           Use **X509**___**load**___**[http**(3)](https://www.chedong.com/phpMan.php/man/http/3/markdown) and **X509**___**CRL**___**load**___**[http**(3)](https://www.chedong.com/phpMan.php/man/http/3/markdown) instead.

### Using the FIPS Module in applications
       See **fips**___**[module**(7)](https://www.chedong.com/phpMan.php/man/module/7/markdown) and **OSSL**___**[PROVIDER-FIPS**(7)](https://www.chedong.com/phpMan.php/man/PROVIDER-FIPS/7/markdown) for details.

### OpenSSL command line application changes
       _New_ _applications_

       **openssl** **kdf** uses the new **EVP**___**[KDF**(3)](https://www.chedong.com/phpMan.php/man/KDF/3/markdown) API.  **openssl** **kdf** uses the new **EVP**___**[MAC**(3)](https://www.chedong.com/phpMan.php/man/MAC/3/markdown) API.

       _Added_ _options_

### -provider -provider
       any providers, such as the 'legacy' provider or third party providers. If used then the
       'default' provider would also need to be specified if required. The **-provider**___**path** must be
       specified before the **-provider** option.

       The **list** app has many new options. See [**openssl-list**(1)](https://www.chedong.com/phpMan.php/man/openssl-list/1/markdown) for more information.

### -crl -crl
       the generated CRL.

       _Removed_ _options_

       Interactive mode is not longer available.

       The **-crypt** option used by **openssl** **passwd**.  The **-c** option used by **openssl** **x509**, **openssl**
       **dhparam**, **openssl** **dsaparam**, and **openssl** **ecparam**.

       _Other_ _Changes_

       The output of Command line applications may have minor changes.  These are primarily changes
       in capitalisation and white space.  However, in some cases, there are additional differences.
       For example, the DH parameters output from **openssl** **dhparam** now lists 'P', 'Q', 'G' and
       'pcounter' instead of 'prime', 'generator', 'subgroup order' and 'counter' respectively.

       The **openssl** commands that read keys, certificates, and CRLs now automatically detect the PEM
       or DER format of the input files so it is not necessary to explicitly specify the input
       format anymore. However if the input format option is used the specified format will be
       required.

       **openssl** **speed** no longer uses low-level API calls.  This implies some of the performance
       numbers might not be comparable with the previous releases due to higher overhead. This
       applies particularly to measuring performance on smaller data chunks.

       b<openssl dhparam>, **openssl** **dsa**, **openssl** **gendsa**, **openssl** **dsaparam**, **openssl** **genrsa** and **openssl**
       **rsa** have been modified to use PKEY APIs.  **openssl** **genrsa** and **openssl** **rsa** now write PKCS #8
       keys by default.

       _Default_ _settings_

       "SHA256" is now the default digest for TS query used by **openssl** **ts**.

       _Deprecated_ _apps_

       **openssl** **rsautl** is deprecated, use **openssl** **pkeyutl** instead.  **openssl** **dhparam**, **openssl** **dsa**,
       **openssl** **gendsa**, **openssl** **dsaparam**, **openssl** **genrsa**, **openssl** **rsa**, **openssl** **genrsa** and **openssl** **rsa**
       are now in maintenance mode and no new features will be added to them.

### TLS Changes
       •   TLS 1.3 FFDHE key exchange support added

           This uses DH safe prime named groups.

       •   Support for fully "pluggable" TLSv1.3 groups.

           This means that providers may supply their own group implementations (using either the
           "key exchange" or the "key encapsulation" methods) which will automatically be detected
           and used by libssl.

       •   SSL and SSL_CTX options are now 64 bit instead of 32 bit.

           The signatures of the functions to get and set options on SSL and SSL_CTX objects changed
           from "unsigned long" to "uint64_t" type.

           This may require source code changes. For example it is no longer possible to use the
           **SSL**___**OP**___ macro values in preprocessor "#if" conditions.  However it is still possible to
           test whether these macros are defined or not.

           See **SSL**___**CTX**___**get**___**[options**(3)](https://www.chedong.com/phpMan.php/man/options/3/markdown), **SSL**___**CTX**___**set**___**[options**(3)](https://www.chedong.com/phpMan.php/man/options/3/markdown), **SSL**___**get**___**[options**(3)](https://www.chedong.com/phpMan.php/man/options/3/markdown) and
           **SSL**___**set**___**[options**(3)](https://www.chedong.com/phpMan.php/man/options/3/markdown).

       •   **SSL**___**set1**___**host()** and **SSL**___**add1**___**host()** Changes

           These functions now take IP literal addresses as well as actual hostnames.

       •   Added SSL option SSL_OP_CLEANSE_PLAINTEXT

           If the option is set, openssl cleanses (zeroizes) plaintext bytes from internal buffers
           after delivering them to the application. Note, the application is still responsible for
           cleansing other copies (e.g.: data received by **SSL**___**[read**(3)](https://www.chedong.com/phpMan.php/man/read/3/markdown)).

       •   Client-initiated renegotiation is disabled by default.

           To allow it, use the **-client**___**renegotiation** option, the **SSL**___**OP**___**ALLOW**___**CLIENT**___**RENEGOTIATION**
           flag, or the "ClientRenegotiation" config parameter as appropriate.

       •   Secure renegotiation is now required by default for TLS connections

           Support for RFC 5746 secure renegotiation is now required by default for SSL or TLS
           connections to succeed.  Applications that require the ability to connect to legacy peers
           will need to explicitly set SSL_OP_LEGACY_SERVER_CONNECT.  Accordingly,
           SSL_OP_LEGACY_SERVER_CONNECT is no longer set as part of SSL_OP_ALL.

       •   Combining the Configure options no-ec and no-dh no longer disables TLSv1.3

           Typically if OpenSSL has no EC or DH algorithms then it cannot support connections with
           TLSv1.3. However OpenSSL now supports "pluggable" groups through providers. Therefore
           third party providers may supply group implementations even where there are no built-in
           ones. Attempting to create TLS connections in such a build without also disabling TLSv1.3
           at run time or using third party provider groups may result in handshake failures.
           TLSv1.3 can be disabled at compile time using the "no-tls1_3" Configure option.

       •   **SSL**___**CTX**___**set**___**ciphersuites()** and **SSL**___**set**___**ciphersuites()** changes.

           The methods now ignore unknown ciphers.

       •   Security callback change.

           The security callback, which can be customised by application code, supports the security
           operation SSL_SECOP_TMP_DH. This is defined to take an EVP_PKEY in the "other" parameter.
           In most places this is what is passed. All these places occur server side. However there
           was one client side call of this security operation and it passed a DH object instead.
           This is incorrect according to the definition of SSL_SECOP_TMP_DH, and is inconsistent
           with all of the other locations. Therefore this client side call has been changed to pass
           an EVP_PKEY instead.

       •   New SSL option SSL_OP_IGNORE_UNEXPECTED_EOF

           The SSL option SSL_OP_IGNORE_UNEXPECTED_EOF is introduced. If that option is set, an
           unexpected EOF is ignored, it pretends a close notify was received instead and so the
           returned error becomes SSL_ERROR_ZERO_RETURN.

       •   The security strength of SHA1 and MD5 based signatures in TLS has been reduced.

           This results in SSL 3, TLS 1.0, TLS 1.1 and DTLS 1.0 no longer working at the default
           security level of 1 and instead requires security level 0. The security level can be
           changed either using the cipher string with @SECLEVEL, or calling
           **SSL**___**CTX**___**set**___**security**___**[level**(3)](https://www.chedong.com/phpMan.php/man/level/3/markdown). This also means that where the signature algorithms
           extension is missing from a ClientHello then the handshake will fail in TLS 1.2 at
           security level 1. This is because, although this extension is optional, failing to
           provide one means that OpenSSL will fallback to a default set of signature algorithms.
           This default set requires the availability of SHA1.

       •   X509 certificates signed using SHA1 are no longer allowed at security level 1 and above.

           In TLS/SSL the default security level is 1. It can be set either using the cipher string
           with @SECLEVEL, or calling **SSL**___**CTX**___**set**___**security**___**[level**(3)](https://www.chedong.com/phpMan.php/man/level/3/markdown). If the leaf certificate is
           signed with SHA-1, a call to **SSL**___**CTX**___**use**___**[certificate**(3)](https://www.chedong.com/phpMan.php/man/certificate/3/markdown) will fail if the security level
           is not lowered first.  Outside TLS/SSL, the default security level is -1 (effectively 0).
           It can be set using **X509**___**VERIFY**___**PARAM**___**set**___**auth**___**[level**(3)](https://www.chedong.com/phpMan.php/man/level/3/markdown) or using the **-auth**___**level** options
           of the commands.

## SEE ALSO
       **fips**___**[module**(7)](https://www.chedong.com/phpMan.php/man/module/7/markdown)

## COPYRIGHT
       Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.

       Licensed under the Apache License 2.0 (the "License").  You may not use this file except in
       compliance with the License.  You can obtain a copy in the file LICENSE in the source
       distribution or at <<https://www.openssl.org/source/license.html>>.



3.0.2                                        2026-06-02                        [MIGRATION_GUIDE(7SSL)](https://www.chedong.com/phpMan.php/man/MIGRATIONGUIDE/7SSL/markdown)
