How to implement a tss2 API in C or C++ to use funktions within code

331 views Asked by At

I am completely new to API programming, hence we never used it at university and nobody told us how to do this.

I have the problem, that i want to get random numbers from my TPM 2.0 module within a C++ programm and parse them to an cryptographic function like McEliece through the tss API.

I know that it must be somehow possible to use the command "tpm2_getrandom" within the code, which i also use in terminal to get random bytes, if the API is implemented.

I tried to copy the whole library in my working directory and include the headers of the needed functions, but it didn't work.

Now i really have no idea how to do this, the API descriptions at the official github page are quite confusing to me and not intuitive. They seem to be written for people who have at least a clue how APIs work and how to implement them and who are familar in cryptographic functions pragramming.

Thanks for any advice.

0

There are 0 answers