diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2019-10-09 14:43:46 -0700 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2019-10-15 14:56:54 -0700 |
commit | ece734f40413bf2995ebe9c496cbe169f90d8231 (patch) | |
tree | 1d7901677e852fb7b5782e7d7f6438b375f1aa50 /lib | |
parent | 8b635f806f002fac0167fa730f4f761cb3ada724 (diff) | |
download | tpm2-tss-ece734f40413bf2995ebe9c496cbe169f90d8231.tar.gz |
esys: add a new function to retrieve sys context from esys
In some cases it can be necessary to call the underlining
sys function before invoking esys function. One example
would be to retrieve cpHash buffer of a command that needs
to be fed to Esys_PolicySigned or Esys_PolicySecret calls.
This can be done by using the Tss2_Sys_GetCpBuffer()
sys call as long as the user can access the sys context.
Fixes: #1533
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tss2-esys.def | 3 | ||||
-rw-r--r-- | lib/tss2-esys.map | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/tss2-esys.def b/lib/tss2-esys.def index ab54aec8..f39a4e7d 100644 --- a/lib/tss2-esys.def +++ b/lib/tss2-esys.def @@ -112,6 +112,7 @@ EXPORTS Esys_GetTime Esys_GetTime_Async Esys_GetTime_Finish + Esys_GetSysContext Esys_HMAC Esys_HMAC_Async Esys_HMAC_Finish @@ -352,4 +353,4 @@ EXPORTS Esys_VerifySignature_Finish Esys_ZGen_2Phase Esys_ZGen_2Phase_Async - Esys_ZGen_2Phase_Finish
\ No newline at end of file + Esys_ZGen_2Phase_Finish diff --git a/lib/tss2-esys.map b/lib/tss2-esys.map index 2c2f8e23..e800833b 100644 --- a/lib/tss2-esys.map +++ b/lib/tss2-esys.map @@ -110,6 +110,7 @@ Esys_GetTime; Esys_GetTime_Async; Esys_GetTime_Finish; + Esys_GetSysContext; Esys_Hash; Esys_Hash_Async; Esys_Hash_Finish; |