Hey wojteksowa,

Thanks for bringing this to our attention, it turns out we were improperly setting the tpm session and it was trying to evict the key with a noauth session. I have made a fix and the PR can be found here https://github.com/wolfSSL/wolfTPM/pull/266. We will try to merge it into master as soon as possible.

Best Wishes,
John Bland

Hey Rostyslav,

I've checked our winapi building with the msys2 compiler it seems it was more strict about typecasting than when we last tested it. I've pushed an update to fix the compiler errors and tested it on my windows vm with tpm. These changes have been merged into the master branch, can you please pull my changes and try again and confirm it builds okay?

Best Wishes,
John Bland