smc_api: Fix buffer being passed to se_get_exp_mod_output in smc_unwrap_rsa_oaep_wrapped_titlekey_get_result

wrapped_titlekey doesn't exist
This commit is contained in:
Lioncash 2018-02-23 07:53:06 -05:00
parent 8e4ab5f416
commit 9a75943ca6
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -349,7 +349,7 @@ uint32_t smc_unwrap_rsa_oaep_wrapped_titlekey_get_result(void *buf, uint64_t siz
return 2; return 2;
} }
se_get_exp_mod_output(wrapped_titlekey, 0x100); se_get_exp_mod_output(rsa_wrapped_titlekey, 0x100);
if (tkey_rsa_oaep_unwrap(aes_wrapped_titlekey, 0x10, rsa_wrapped_titlekey, 0x100) != 0x10) { if (tkey_rsa_oaep_unwrap(aes_wrapped_titlekey, 0x10, rsa_wrapped_titlekey, 0x100) != 0x10) {
/* Failed to extract RSA OAEP wrapped key. */ /* Failed to extract RSA OAEP wrapped key. */
g_is_smc_in_progress = false; g_is_smc_in_progress = false;