mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
SecurityPkg: Fix exponent unmarshaled as 16 bits
According issue #5536, exponent is 32 bits but is unmarshaled as 16 bits. Signed-off-by: zodf0055980 <zodf0055980@gmail.com>
This commit is contained in:
parent
96b90e150c
commit
f7abf6af2d
1 changed files with 1 additions and 1 deletions
|
|
@ -252,7 +252,7 @@ Tpm2ReadPublic (
|
|||
|
||||
OutPublic->publicArea.parameters.rsaDetail.keyBits = SwapBytes16 (ReadUnaligned16 ((UINT16 *)Buffer));
|
||||
Buffer += sizeof (UINT16);
|
||||
OutPublic->publicArea.parameters.rsaDetail.exponent = SwapBytes16 (ReadUnaligned16 ((UINT16 *)Buffer));
|
||||
OutPublic->publicArea.parameters.rsaDetail.exponent = SwapBytes32 (ReadUnaligned32 ((UINT32 *)Buffer));
|
||||
Buffer += sizeof (UINT32);
|
||||
break;
|
||||
case TPM_ALG_ECC:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue