Skip to content

Commit

Permalink
hybrid: update param processing
Browse files Browse the repository at this point in the history
  • Loading branch information
paulidale committed Jan 6, 2025
1 parent 1b59c95 commit e456b04
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions providers/implementations/keymgmt/hybrid_kmgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ int ossl_hybrid_kmgmt_get_params(void *vkey, OSSL_PARAM params[])
break;
#endif

case PIDX_PKEY_PARAM_PUB_KEY:
case PIDX_PKEY_PARAM_PRIV_KEY:
case PIDX_PKEY_PARAM_ENCODED_PUBLIC_KEY:
if (key->pubkey_length > p->data_size) {
ERR_raise_data(ERR_LIB_PROV, PROV_R_INVALID_KEY_LENGTH,
Expand All @@ -242,6 +240,11 @@ int ossl_hybrid_kmgmt_get_params(void *vkey, OSSL_PARAM params[])
}
break;

case PIDX_PKEY_PARAM_PUB_KEY:
case PIDX_PKEY_PARAM_PRIV_KEY:
/* We don't support these, so don't pass to sub-algorithms */
break;

case PIDX_KEM_PARAM_IKME:
/*
* If NIST decides to validate hybrid algorithms using ACVP
Expand Down

0 comments on commit e456b04

Please sign in to comment.