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 /providers/implementations/include | |
parent | 5135a9bd9280301a24640a6bf5125c144e28cfdd (diff) |
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 'providers/implementations/include')
-rw-r--r-- | providers/implementations/include/prov/ciphercommon.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/providers/implementations/include/prov/ciphercommon.h b/providers/implementations/include/prov/ciphercommon.h index 7ccc9c7047..91c4c914be 100644 --- a/providers/implementations/include/prov/ciphercommon.h +++ b/providers/implementations/include/prov/ciphercommon.h @@ -36,9 +36,10 @@ typedef int (PROV_CIPHER_HW_FN)(PROV_CIPHER_CTX *dat, unsigned char *out, #define PROV_CIPHER_FLAG_CUSTOM_IV 0x0002 #define PROV_CIPHER_FLAG_CTS 0x0004 #define PROV_CIPHER_FLAG_TLS1_MULTIBLOCK 0x0008 +#define PROV_CIPHER_FLAG_RAND_KEY 0x0010 /* Internal flags that are only used within the provider */ -#define PROV_CIPHER_FLAG_VARIABLE_LENGTH 0x0010 -#define PROV_CIPHER_FLAG_INVERSE_CIPHER 0x0020 +#define PROV_CIPHER_FLAG_VARIABLE_LENGTH 0x0100 +#define PROV_CIPHER_FLAG_INVERSE_CIPHER 0x0200 struct prov_cipher_ctx_st { block128_f block; |