diff options
Diffstat (limited to 'providers/common/ciphers/cipher_gcm.c')
-rw-r--r-- | providers/common/ciphers/cipher_gcm.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/providers/common/ciphers/cipher_gcm.c b/providers/common/ciphers/cipher_gcm.c index d7c67e8b6b..f479bc8fda 100644 --- a/providers/common/ciphers/cipher_gcm.c +++ b/providers/common/ciphers/cipher_gcm.c @@ -202,25 +202,6 @@ int gcm_set_ctx_params(void *vctx, const OSSL_PARAM params[]) } } - /* - * TODO(3.0) Temporary solution to address fuzz test crash, which will be - * reworked once the discussion in PR #9510 is resolved. i.e- We need a - * general solution for handling missing parameters inside set_params and - * get_params methods. - */ - p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); - if (p != NULL) { - size_t keylen; - - if (!OSSL_PARAM_get_size_t(p, &keylen)) { - ERR_raise(ERR_LIB_PROV, PROV_R_FAILED_TO_GET_PARAMETER); - return 0; - } - /* The key length can not be modified for gcm mode */ - if (keylen != ctx->keylen) - return 0; - } - return 1; } |