6741 - Use rsaDec label size for RSA Decrypt label copy in native_test

pull/547/head
aidan garske 2026-07-07 12:57:46 -07:00
parent b47aa2280c
commit 32ef758dae
1 changed files with 1 additions and 1 deletions

View File

@ -1450,7 +1450,7 @@ int TPM2_Native_TestArgs(void* userCtx, int argc, char *argv[])
cmdIn.rsaDec.inScheme.scheme = TPM_ALG_OAEP;
cmdIn.rsaDec.inScheme.details.oaep.hashAlg = TPM_ALG_SHA256;
cmdIn.rsaDec.label.size = sizeof(label); /* Null term required */
XMEMCPY(cmdIn.rsaDec.label.buffer, label, cmdIn.rsaEnc.label.size);
XMEMCPY(cmdIn.rsaDec.label.buffer, label, cmdIn.rsaDec.label.size);
rc = TPM2_RSA_Decrypt(&cmdIn.rsaDec, &cmdOut.rsaDec);
if (rc != TPM_RC_SUCCESS) {
printf("TPM2_RSA_Decrypt failed 0x%x: %s\n", rc,