;xcghash&quot; and &quot;session_id&quot; values:</p>

<pre><code> EVP_KDF *kdf;
 EVP_KDF_CTX *kctx;
 char type = EVP_KDF_SSHKDF_TYPE_INITIAL_IV_CLI_TO_SRV;
 unsigned char key[1024] = &quot;01234...&quot;;
 unsigned char xcghash[32] = &quot;012345...&quot;;
 unsigned char session_id[32] = &quot;012345...&quot;;
 unsigned char out[8];
 size_t outlen = sizeof(out);
 OSSL_PARAM params[6], *p = params;

 kdf = EVP_KDF_fetch(NULL, &quot;SSHKDF&quot;, NULL);
 kctx = EVP_KDF_CTX_new(kdf);
 EVP_KDF_free(kdf);

 *p+