Skip to content

Commit

Permalink
Fix the example SSH KDF code.
Browse files Browse the repository at this point in the history
A salt was being set instead of a session ID.

Fixes openssl#16525
  • Loading branch information
paulidale committed Sep 7, 2021
1 parent a04b065 commit 5c30015
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/man7/EVP_KDF-SSHKDF.pod
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ This example derives an 8 byte IV using SHA-256 with a 1K "key" and appropriate
key, (size_t)1024);
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SSHKDF_XCGHASH,
xcghash, (size_t)32);
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SALT,
*p++ = OSSL_PARAM_construct_octet_string(OSSL_KDF_PARAM_SSHKDF_SESSION_ID,
session_id, (size_t)32);
*p++ = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_SSHKDF_TYPE,
&type, sizeof(type));
Expand Down

0 comments on commit 5c30015

Please sign in to comment.