<p><a href="https://review.coreboot.org/22735">View Change</a></p><p>12 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c">File src/security/tpm/tss/tcg-1.2/tss.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@353">Patch Set #10, Line 353:</a> <code style="font-family:monospace,monospace">     struct s_tpm_sha1_start_cmd cmd = tpm_sha1_start_cmd;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">struct s_tpm_sha1_start_cmd cmd = tpm_sha1_start_cmd;</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@357">Patch Set #10, Line 357:</a> <code style="font-family:monospace,monospace">       result = tlcl_send_receive(cmd.buffer, response, sizeof(response));</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">obsolete with initialization on top</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@370">Patch Set #10, Line 370:</a> <code style="font-family:monospace,monospace">   struct s_tpm_sha1_update_cmd cmd = tpm_sha1_update_cmd;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">const</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@372">Patch Set #10, Line 372:</a> <code style="font-family:monospace,monospace">     uint32_t total_length;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">struct s_tpm_sha1_update_cmd cmd = tpm_sha1_update_cmd;</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@374">Patch Set #10, Line 374:</a> <code style="font-family:monospace,monospace">    total_length =</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">uint32_t</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@378">Patch Set #10, Line 378:</a> <code style="font-family:monospace,monospace"></code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">obsolete with initialization on top</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@388">Patch Set #10, Line 388:</a> <code style="font-family:monospace,monospace"> struct s_tpm_sha1_complete_cmd cmd = tpm_sha1_complete_cmd;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">const</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@389">Patch Set #10, Line 389:</a> <code style="font-family:monospace,monospace"> uint8_t response[TPM_LARGE_ENOUGH_COMMAND_SIZE];</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">uint8_t *digest is sufficient here</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@391">Patch Set #10, Line 391:</a> <code style="font-family:monospace,monospace">       uint32_t result;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">struct s_tpm_sha1_complete_cmd cmd = tpm_sha1_complete_cmd;</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@393">Patch Set #10, Line 393:</a> <code style="font-family:monospace,monospace">      total_length =</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">uint32_t</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@398">Patch Set #10, Line 398:</a> <code style="font-family:monospace,monospace">   to_tpm_uint32(cmd.buffer + tpm_sha1_complete_cmd.length,</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">obsolete with initialization on top</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://review.coreboot.org/#/c/22735/10/src/security/tpm/tss/tcg-1.2/tss.c@400">Patch Set #10, Line 400:</a> <code style="font-family:monospace,monospace">      memcpy(cmd.buffer + tpm_sha1_complete_cmd.data, message,</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">no sure what the next to lines are good for...</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">buffer size is different so the tpm command buffer is dynamically aligned.</p></li></ul></li></ul><p>To view, visit <a href="https://review.coreboot.org/22735">change 22735</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/22735"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ib84513e8cbfe1ef11f495b873de0331178915c59 </div>
<div style="display:none"> Gerrit-Change-Number: 22735 </div>
<div style="display:none"> Gerrit-PatchSet: 11 </div>
<div style="display:none"> Gerrit-Owner: Philipp Deppenwiese <zaolin.daisuki@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Patrick Rudolph <siro@das-labor.org> </div>
<div style="display:none"> Gerrit-Reviewer: Paul Menzel <paulepanter@users.sourceforge.net> </div>
<div style="display:none"> Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 15 Jan 2018 15:15:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>