summaryrefslogtreecommitdiffstats
path: root/providers/implementations/kem/ec_kem.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/kem/ec_kem.c')
-rw-r--r--providers/implementations/kem/ec_kem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/implementations/kem/ec_kem.c b/providers/implementations/kem/ec_kem.c
index 9d8f94270e..c58727c9e2 100644
--- a/providers/implementations/kem/ec_kem.c
+++ b/providers/implementations/kem/ec_kem.c
@@ -405,10 +405,10 @@ int ossl_ec_dhkem_derive_private(EC_KEY *ec, BIGNUM *priv,
return 0;
/* ikmlen should have a length of at least Nsk */
- if (ikmlen < info->Nsecret) {
+ if (ikmlen < info->Nsk) {
ERR_raise_data(ERR_LIB_PROV, PROV_R_INVALID_INPUT_LENGTH,
"ikm length is :%zu, should be at least %zu",
- ikmlen, info->Nsecret);
+ ikmlen, info->Nsk);
goto err;
}