
3 May
2018
3 May
'18
4:31 a.m.
Hi Miquel,
On 2 May 2018 at 02:59, Miquel Raynal miquel.raynal@bootlin.com wrote:
TPM commands are much easier to read/write with these macros that will transform words or integers into byte strings. This way, there is no need to call pack_byte_string() while all variable length in a command are known (and at must 4 bytes, which is a lot of them).
Signed-off-by: Miquel Raynal miquel.raynal@bootlin.com
lib/tpm-utils.h | 6 ++++++ 1 file changed, 6 insertions(+)
I'm not a huge fan of the macro magic, but OK.
Reviewed-by: Simon Glass sjg@chromium.org