]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Document that EVP_get_cipherbyname() does not work for some new algorithm names.
authorslontis <shane.lontis@oracle.com>
Wed, 25 Aug 2021 01:50:20 +0000 (11:50 +1000)
committerTomas Mraz <tomas@openssl.org>
Tue, 31 Aug 2021 10:18:04 +0000 (12:18 +0200)
These algorithms were added to providers but have no const EVP_CIPHER*
mapping. Ciphers for SIV and CTS were previously only available via low level
function calls that are deprecated.

Reported by @reaperhulk.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16414)

CHANGES.md
doc/man3/EVP_EncryptInit.pod

index 5b16e34dd518ebf2c9a2828b0aed0aa7fafd89b7..a24b30e651443a46b0bc1754d362518171ad6bbc 100644 (file)
@@ -41,6 +41,13 @@ breaking changes, and mappings for the large list of deprecated functions.
 
    *OpenSSL team members and many third party contributors*
 
+ * The EVP_get_cipherbyname() function will return NULL for algorithms such as
+   "AES-128-SIV", "AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were
+   previously only accessible via low level interfaces. Use EVP_CIPHER_fetch()
+   instead to retrieve these algorithms from a provider.
+
+   *Shane Lontis*
+
  * On build targets where the multilib postfix is set in the build
    configuration the libdir directory was changing based on whether
    the lib directory with the multilib postfix exists on the system
index cb3662968486426ac6832463c3a3f4ca4d9c036b..62d9047dce781fe1d3a74c33c643a805cc27439b 100644 (file)
@@ -447,6 +447,11 @@ EVP_CipherFinal_ex() instead.
 Return an EVP_CIPHER structure when passed a cipher name, a NID or an
 ASN1_OBJECT structure.
 
+EVP_get_cipherbyname() will return NULL for algorithms such as "AES-128-SIV",
+"AES-128-CBC-CTS" and "CAMELLIA-128-CBC-CTS" which were previously only
+accessible via low level interfaces. Use EVP_CIPHER_fetch() instead to retrieve
+these algorithms from a provider.
+
 =item EVP_CIPHER_get_nid() and EVP_CIPHER_CTX_get_nid()
 
 Return the NID of a cipher when passed an B<EVP_CIPHER> or B<EVP_CIPHER_CTX>