commit | 0be7f8dcc9bc3d082036fbab8c1caa67715a11f4 | [log] [tgz] |
---|---|---|
author | Namyoon Woo <namyoon@chromium.org> | Tue Feb 04 16:43:47 2020 -0800 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Feb 12 05:00:32 2020 +0000 |
tree | a4c56d3bb4c4f359199854c87e06b4af06cf05ce | |
parent | a4b6290cd6253bbeaad508e18d933484ff6f1d30 [diff] |
tpm2: introducing NvReadIndexInfo() and NvReadIndexData() This patch adds two functions: - NvReadIndexInfo(), a sibling function of NvGetIndexInfo() which takes handle address instead of handle index. - NvReadIndexData(), a sibling function of NvGetIndexData() which takes handle address additionally. These functions are to avoid redundant NvFindHandle() calls in reading TPM Index data. The recommendation is to call NvEarlyStageFindHandle() to get an address for a certain handle, and pass it over to NvReadIndexInfo() or NvReadIndexData(). BUG=none TEST=manually ran on reworked Helios, and checed booting and EC-EFS2 working. Checked the test emerge running good: $ sudo 'FEATURES=test' 'PKGDIR=/build/eve/test-packages' -- emerge-eve chromeos-base/chromeos-ec Cq-Depend:chromium:2047935 Change-Id: I4b959f04c4b88e0643d9b9aa3bacb70933c4d6d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/tpm2/+/2038108 Tested-by: Namyoon Woo <namyoon@chromium.org> Commit-Queue: Namyoon Woo <namyoon@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>