doc: document additional argument to KDF derive calls
[openssl.git] / doc / man7 / EVP_KDF-KRB5KDF.pod
index 8d730d40b823f6f073736aac2fa5f946c4667f6e..874b4d9753471129d88c63c2cb60ba8a617ce769 100644 (file)
@@ -81,10 +81,7 @@ This example derives a key using the AES-128-CBC cipher:
  *p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_CONSTANT,
                                           constant, strlen(constant));
  *p = OSSL_PARAM_construct_end();
- if (EVP_KDF_set_params(kctx, params) <= 0)
-     /* Error */
-
- if (EVP_KDF_derive(kctx, out, outlen) <= 0)
+ if (EVP_KDF_derive(kctx, out, outlen, params) <= 0)
      /* Error */
 
  EVP_KDF_CTX_free(kctx);