Skip to content

Commit

Permalink
fixup! Add the TLS13-KDF OpenSSL Key Derivation Function
Browse files Browse the repository at this point in the history
  • Loading branch information
simo5 committed Sep 27, 2024
1 parent c183be6 commit 6cfcc95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ static int p11prov_hkdf_set_ctx_params(void *ctx, const OSSL_PARAM params[])
} else if (OPENSSL_strcasecmp(p->data, "EXPAND_ONLY") == 0) {
hkdfctx->mode = EVP_KDF_HKDF_MODE_EXPAND_ONLY;
} else {
hkdfctx->mode = 1;
ERR_raise(ERR_LIB_PROV, PROV_R_INVALID_MODE);
return RET_OSSL_ERR;
}
} else {
ret = OSSL_PARAM_get_int(p, &hkdfctx->mode);
Expand Down

0 comments on commit 6cfcc95

Please sign in to comment.