Skip to content

Commit

Permalink
libspdm: spdm: Fixup info buffer pointer for hkdf_expand
Browse files Browse the repository at this point in the history
We were incorrectly passing the wrong address of info to
libspdm_hkdf_expand(), let's fix this up and just directly pass the
pointer we were passed back to libspdm.

Signed-off-by: Alistair Francis <[email protected]>
  • Loading branch information
alistair23 committed Jul 25, 2024
1 parent 4d57ab3 commit 275c43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libspdm/spdm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2334,7 +2334,7 @@ pub unsafe extern "C" fn libspdm_psk_master_secret_hkdf_expand(
base_hash_algo,
master_secret.as_mut_ptr(),
hash_size,
&info as *const _ as *const u8,
info,
info_size,
out,
out_size,
Expand Down

0 comments on commit 275c43c

Please sign in to comment.