commit | 5e7941cb0dbecc0b212e2462248b97540edbe59f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Nov 18 14:22:26 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Thu Nov 29 09:30:06 2018 -0700 |
tree | 019ad60bed1d06aef4b527daa3b206e1491a9381 | |
parent | 04a3d6e5a4f163cd786a46d44726e3e6de63b90f [diff] |
tpm: Export the open/close functions At present these functions are not accessible outside the TPM library, but in some cases we need to call them. Export them in the header file and add a define for the SHA1 digest size. Also adjust tpm_open() to call tpm_close() first so that the TPM is in a known state before opening (e.g. by a previous phase of U-Boot). Signed-off-by: Simon Glass <sjg@chromium.org>