Contributed-under: TianoCore Contribution Agreement 1.0
Signed off by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15766
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
Implement TPM2 help.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
// sessionAttributes\r
*(UINT8 *)Buffer = *(UINT8 *)&AuthSessionIn->sessionAttributes;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
\r
// hmac\r
WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16 (AuthSessionIn->hmac.size));\r
\r
// sessionAttributes = 0\r
*(UINT8 *)Buffer = 0x00;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
\r
// hmac = nullAuth\r
WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16(0));\r
\r
// sessionAttributes\r
*(UINT8 *)&AuthSessionOut->sessionAttributes = *(UINT8 *)Buffer;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
\r
// hmac\r
AuthSessionOut->hmac.size = SwapBytes16 (ReadUnaligned16 ((UINT16 *)Buffer));\r
/** @file\r
Implement TPM2 Hierarchy related command.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
// disable\r
*(UINT8 *)Buffer = Disable;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
\r
CmdSize = (UINT32)(Buffer - (UINT8 *)&Cmd);\r
Cmd.Header.paramSize = SwapBytes32(CmdSize);\r
Buffer += sizeof(UINT32);\r
\r
*(UINT8 *)Buffer = State;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
\r
CmdSize = (UINT32)(Buffer - (UINT8 *)&Cmd);\r
Cmd.Header.paramSize = SwapBytes32(CmdSize);\r
/** @file\r
Implement TPM2 Integrity related command.\r
\r
-Copyright (c) 2013, Intel Corporation. All rights reserved. <BR>\r
+Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
WriteUnaligned16 ((UINT16 *)Buffer, SwapBytes16(PcrAllocation->pcrSelections[Index].hash));\r
Buffer += sizeof(UINT16);\r
*(UINT8 *)Buffer = PcrAllocation->pcrSelections[Index].sizeofSelect;\r
- Buffer += sizeof(UINT8);\r
+ Buffer++;\r
CopyMem (Buffer, PcrAllocation->pcrSelections[Index].pcrSelect, PcrAllocation->pcrSelections[Index].sizeofSelect);\r
Buffer += PcrAllocation->pcrSelections[Index].sizeofSelect;\r
}\r