Replies: 10 comments 1 reply
-
It appears that the TPM library the SDK uses is tied to Windows as it expects this 'bcrypt.dll' file which ships on Windows. |
Beta Was this translation helpful? Give feedback.
-
@tdesmet |
Beta Was this translation helpful? Give feedback.
-
Possibly relevant: microsoft/TSS.MSR#71. |
Beta Was this translation helpful? Give feedback.
-
Yes I was able to build and run the simulator. The problem is that Tpm2Lib uses bcrypt. I was looking at the source code and it seems the dependency for bcrypt has been removed in microsoft/TSS.MSR#105 along with some other work to make the library cross platform compatible. I'll make an issue in that project to see if they want to release a new nuget package. |
Beta Was this translation helpful? Give feedback.
-
That is correct. I'm glad you also hit them up on their project site. When a new version is released, you should be able to privately add a new version reference. We'll also update ours when it is available and release an update on our usual cadence. |
Beta Was this translation helpful? Give feedback.
-
I've moved this issue to a discussion so Tom and other customers who are impacted can track the progress, or add their support to the request. @RamIoTMalhotra will be tracking. |
Beta Was this translation helpful? Give feedback.
-
So I created the issue microsoft/TSS.MSR#147 but I am not receiving any response. Looking at other issues there seems to be no interaction by the maintainers on issues. Since these are both official microsoft projects is there a way for you guys to communicate with the other team internally and get them to give some feedback on when a new nuget release can be expected? |
Beta Was this translation helpful? Give feedback.
-
Yep, we've done that. @RamIoTMalhotra is in contact with that team and tracking it. Last we heard they said they were scheduling the work. |
Beta Was this translation helpful? Give feedback.
-
Any update on this? |
Beta Was this translation helpful? Give feedback.
-
I confirm the same happens on FreeBSD and Linux using the latest but ancient nuget package 2.1.1 of TSS.Net.. We managed to workaround this by ProjectReferencing the HEAD version of TSS.Net.csproj and Microsoft.Azure.Devices.Provisioning.Security.Tpm.csproj in chain from our device project and dropping both nuget packages for them. |
Beta Was this translation helpful? Give feedback.
-
Context
Description of the issue
I'm trying to simulate an iot device using the Microsoft.Azure.Devices packages.
When I try to create the SecurityProviderTpmHsm I get an error
Unable to load shared library 'bcrypt.dll' or one of its dependencies
.The code works on windows but not on my macbook (M1 cpu).
I have compiled the tpm2 simulator from https://github.com/microsoft/ms-tpm-20-ref/ and it is running.
Code sample exhibiting the issue
Console log of the issue
Beta Was this translation helpful? Give feedback.
All reactions