Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(859)

Issue 587014: Initial code for the TPM Lightweight Command Library. (Closed)

Created:
10 years, 10 months ago by Luigi Semenzato
Modified:
10 years, 10 months ago
Reviewers:
gauravsh
CC:
chromium-os-reviews_chromium.org, Will Drewry
Visibility:
Public.

Description

Initial code for the TPM Lightweight Command Library.

Patch Set 1 #

Patch Set 2 : removed stray file #

Patch Set 3 : Changes to comments only. #

Total comments: 12

Patch Set 4 : Eliminated CPP table-driven generation. #

Patch Set 5 : Cleanup: mostly naming and comment changes. #

Total comments: 61

Patch Set 6 : Google style conformance. #

Patch Set 7 : Renamed various files. #

Total comments: 14

Patch Set 8 : Style changes as per review #

Total comments: 8

Patch Set 9 : Free all allocated memory. Also a few style fixes. #

Patch Set 10 : Added missing license #

Unified diffs Side-by-side diffs Delta from patch set Stats (+842 lines, -0 lines) Patch
A src/platform/tpm_lite/src/include/tlcl.h View 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/testsuite/Makefile View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/testsuite/readonly.c View 1 2 3 4 5 6 7 1 chunk +95 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/tlcl/Makefile View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/tlcl/generator.c View 1 2 3 4 5 6 7 8 1 chunk +334 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/tlcl/tlcl.c View 7 1 chunk +178 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/tlcl/tlcl_internal.h View 7 8 9 1 chunk +105 lines, -0 lines 0 comments Download
A src/platform/tpm_lite/src/tlcl/tpmextras.h View 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
gauravsh
I took a quick look. General comments: The API looks very good. Apart from a ...
10 years, 10 months ago (2010-02-10 00:10:42 UTC) #1
Luigi Semenzato
Thanks Gaurav. As discussed, I removed the table-driven preprocessor constructs and addressed most comments. More ...
10 years, 10 months ago (2010-02-11 18:14:14 UTC) #2
gauravsh
Some initial feedback. http://codereview.chromium.org/587014/diff/7010/7011 File src/platform/tpm_lite/src/testsuite/Makefile (right): http://codereview.chromium.org/587014/diff/7010/7011#newcode9 src/platform/tpm_lite/src/testsuite/Makefile:9: Maybe add a -ansi/-pedantic flag here ...
10 years, 10 months ago (2010-02-12 01:25:38 UTC) #3
Luigi Semenzato
Well, that took a while. Thanks. I think I addressed all the issues, but there ...
10 years, 10 months ago (2010-02-12 19:42:46 UTC) #4
gauravsh
Looking good. Specific comments below. A general request for style consistency in the firmware code ...
10 years, 10 months ago (2010-02-12 20:42:07 UTC) #5
Luigi Semenzato
Thanks. Fixed everything. On 2010/02/12 20:42:07, gauravsh wrote: > Looking good. Specific comments below. A ...
10 years, 10 months ago (2010-02-19 00:02:36 UTC) #6
gauravsh
10 years, 10 months ago (2010-02-19 00:44:43 UTC) #7
LGTM after misc fixes below.

http://codereview.chromium.org/587014/diff/13001/13002
File src/platform/tpm_lite/src/include/tlcl.h (right):

http://codereview.chromium.org/587014/diff/13001/13002#newcode30
src/platform/tpm_lite/src/include/tlcl.h:30: /* Defines a space with permission
PERM.  INDEX is the index for the space,
Nit: arguments specified with their actual name within []. Same for all other
comments in this file.

http://codereview.chromium.org/587014/diff/13001/13003
File src/platform/tpm_lite/src/testsuite/Makefile (right):

http://codereview.chromium.org/587014/diff/13001/13003#newcode9
src/platform/tpm_lite/src/testsuite/Makefile:9: cc -g readonly.o -o readonly \
You might want to replace cc with a conditional variable CC. This will help with
the cross-compilation when the library is built as part of a test.

CC ?= cc

http://codereview.chromium.org/587014/diff/13001/13005
File src/platform/tpm_lite/src/tlcl/Makefile (right):

http://codereview.chromium.org/587014/diff/13001/13005#newcode18
src/platform/tpm_lite/src/tlcl/Makefile:18: 
s/cc/$(CC)/

http://codereview.chromium.org/587014/diff/13001/13006
File src/platform/tpm_lite/src/tlcl/generator.c (right):

http://codereview.chromium.org/587014/diff/13001/13006#newcode55
src/platform/tpm_lite/src/tlcl/generator.c:55: Field* fld = (Field*)
malloc(sizeof(Field));
either stub this to a helper Malloc() which calls malloc(). Or call free()
explicitly after the call to OutputCommands() in main.

http://codereview.chromium.org/587014/diff/13001/13007
File src/platform/tpm_lite/src/tlcl/tlcl.c (right):

http://codereview.chromium.org/587014/diff/13001/13007#newcode72
src/platform/tpm_lite/src/tlcl/tlcl.c:72: /* Sends a request and receive a
response.
Nit: description of parameters?

http://codereview.chromium.org/587014/diff/13001/13008
File src/platform/tpm_lite/src/tlcl/tlcl_internal.h (right):

http://codereview.chromium.org/587014/diff/13001/13008#newcode1
src/platform/tpm_lite/src/tlcl/tlcl_internal.h:1: #ifndef
TPM_LITE_TLCL_INTERNAL_H_
Copyright header

http://codereview.chromium.org/587014/diff/13001/13008#newcode22
src/platform/tpm_lite/src/tlcl/tlcl_internal.h:22: * Output an error message and
quit the program.
Nit: Comment style in the whole file.

http://codereview.chromium.org/587014/diff/13001/13009
File src/platform/tpm_lite/src/tlcl/tpmextras.h (right):

http://codereview.chromium.org/587014/diff/13001/13009#newcode7
src/platform/tpm_lite/src/tlcl/tpmextras.h:7: * TPM definitions not available in
any TSS include file :-(
Nit: comment style.

Powered by Google App Engine
This is Rietveld 408576698