wolfSSL / wolfTPM

wolfTPM is a highly portable TPM 2.0 library, designed for embedded use.
https://www.wolfssl.com
GNU General Public License v2.0
243 stars 60 forks source link

fix broken evict control example #266

Closed jpbland1 closed 1 year ago

jpbland1 commented 1 year ago

for forum post https://www.wolfssl.com/forums/topic2001-storing-key-in-nv-with-authentication-fails-createprimary-example.html

evict control had an issue where the default noauth session was being used alongisde the encrypted section. to fix this wolfTPM2_SetAuthSession needs to be called with index 0 to override the default session, it's possible we've made this mistake in many places