File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3552,13 +3552,13 @@ TPM_RC TPM2_Encapsulate(Encapsulate_In* in, Encapsulate_Out* out)
35523552 TPM2_Packet_ParseU32 (& packet , & paramSz );
35533553 }
35543554
3555- TPM2_Packet_ParseU16 (& packet , & out -> ciphertext .size );
3556- TPM2_Packet_ParseBytes (& packet , out -> ciphertext .buffer ,
3557- out -> ciphertext .size );
3558-
35593555 TPM2_Packet_ParseU16 (& packet , & out -> sharedSecret .size );
35603556 TPM2_Packet_ParseBytes (& packet , out -> sharedSecret .buffer ,
35613557 out -> sharedSecret .size );
3558+
3559+ TPM2_Packet_ParseU16 (& packet , & out -> ciphertext .size );
3560+ TPM2_Packet_ParseBytes (& packet , out -> ciphertext .buffer ,
3561+ out -> ciphertext .size );
35623562 }
35633563
35643564 TPM2_ReleaseLock (ctx );
Original file line number Diff line number Diff line change @@ -2665,8 +2665,8 @@ typedef struct {
26652665 TPMI_DH_OBJECT keyHandle ;
26662666} Encapsulate_In ;
26672667typedef struct {
2668- TPM2B_KEM_CIPHERTEXT ciphertext ;
26692668 TPM2B_SHARED_SECRET sharedSecret ;
2669+ TPM2B_KEM_CIPHERTEXT ciphertext ;
26702670} Encapsulate_Out ;
26712671WOLFTPM_API TPM_RC TPM2_Encapsulate (Encapsulate_In * in , Encapsulate_Out * out );
26722672
You can’t perform that action at this time.
0 commit comments