diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2021-06-03 19:09:38 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-06-08 15:16:06 +1000 |
commit | f41fd10d90fb5202f4c05f8842b4a4f25afd51d0 (patch) | |
tree | 09106bd79af443731ff67bee224ec5609d632c7a /doc/man3/EVP_EncryptInit.pod | |
parent | 5135a9bd9280301a24640a6bf5125c144e28cfdd (diff) | |
download | openssl-f41fd10d90fb5202f4c05f8842b4a4f25afd51d0.tar.gz |
Add a gettable for provider ciphers to return the EVP_CIPH_RAND_KEY flag
Fixes #15531
DES and TDES set this flag which could possibly be used by applications.
The gettable cipher param OSSL_CIPHER_PARAM_HAS_RAND_KEY has been added.
Note that EVP_CIPHER_CTX_rand_key() uses this flag.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15606)
Diffstat (limited to 'doc/man3/EVP_EncryptInit.pod')
-rw-r--r-- | doc/man3/EVP_EncryptInit.pod | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/man3/EVP_EncryptInit.pod b/doc/man3/EVP_EncryptInit.pod index 965e0d9248..4b90cdd780 100644 --- a/doc/man3/EVP_EncryptInit.pod +++ b/doc/man3/EVP_EncryptInit.pod @@ -679,6 +679,12 @@ TLS ciphers. Use (EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK) to retrieve the cached value. +=item "has-randkey" (B<OSSL_CIPHER_PARAM_HAS_RANDKEY>) <integer> + +Gets 1 if the cipher algorithm I<cipher> supports the gettable EVP_CIPHER_CTX +parameter B<OSSL_CIPHER_PARAM_RANDOM_KEY>. Only DES and 3DES set this to 1, +all other OpenSSL ciphers return 0. + =back =head2 Gettable and Settable EVP_CIPHER_CTX parameters @@ -1115,6 +1121,10 @@ See L</Gettable EVP_CIPHER parameters> "cts". See L</Gettable EVP_CIPHER parameters> "tls-multi". +=item EVP_CIPH_RAND_KEY + +See L</Gettable EVP_CIPHER parameters> "has-randkey". + =back EVP_CIPHER_flags() uses the following flags for legacy purposes only: @@ -1131,8 +1141,6 @@ EVP_CIPHER_flags() uses the following flags for legacy purposes only: =item EVP_CIPH_CUSTOM_KEY_LENGTH -=item EVP_CIPH_RAND_KEY - =item EVP_CIPH_CUSTOM_COPY =item EVP_CIPH_FLAG_DEFAULT_ASN1 |