Commit Graph

18 Commits (e9f35cc3edcb9e25feaa74f37e8db7e5d973ec87)

Author SHA1 Message Date
David Garske e9f35cc3ed Added CSharp wrapper support for RSA encrypt/decrypt and Sign/Verify. Fixed issue with sign signature buffer size checking. Changed wrapper algorithm arguments to use enum TPM2_Alg. 2022-07-21 15:55:08 -07:00
David Garske 4982af8c2b Improve the Windows TBS NV unavailable error handling. 2022-07-19 10:46:49 -07:00
David Garske 02e41c1673 CSharp tests for key NV. Added CSharp `DeleteKey` API. 2022-07-19 10:46:23 -07:00
David Garske 6b44458c5c Implement `IDisposable` for CSharp classes that need cleanup of unmanaged resources (see #221) 2022-07-13 08:45:33 -07:00
David Garske 1a76727edf Support for handling TPM errors with exception (related to #222). Fix for argument order in CSharp `GenerateCSR`. Fix workaround for Windows TBS self test. 2022-07-12 16:25:22 -07:00
David Garske 9d2483d327 New CSR wrappers to assist with TPM based CSR/Self-Signed-Cert generation including CSharp wrappers. This includes support for subject, key usage, custom request extensions and output as PEM or DER. New structure `WOLFTPM2_CSR`. New API's `wolfTPM2_CSR_*`. New CSharp class `Csr`. 2022-07-12 13:53:04 -07:00
David Garske f0c2f02a20 Peer review cleanups. 2022-06-29 14:40:39 -07:00
David Garske f3610b0a11 CSharp wrapper support for setting unique with test case. 2022-06-28 17:07:32 -07:00
David Garske a3a28f9044 Added CSharp test for CreatePrimary RSA EK. 2022-06-27 10:46:52 -07:00
Anthony Hu 37fbc1ddff Adding CSharp wrapper for `wolfTPM2_CreatePrimaryKey()`. 2022-06-27 10:46:50 -07:00
Anthony Hu 2c41a935d1
Merge pull request #212 from dgarske/csharp_add2
Adds CSharp wrapper tests for authenticated sessions
2022-06-27 13:43:00 -04:00
David Garske 8567c907d1 Improve inline code comment for `StartAuth` CSharp wrapper `algMode (algorithm mode) argument. 2022-06-27 10:38:58 -07:00
David Garske 158ce0dbe0 Adds CSharp wrapper tests for authenticated sessions. Fixes issue with C# handle unloading. 2022-06-24 12:55:37 -07:00
David Garske ce0dc15419 Add support for wolfTPM CMake to output the options.h. This enables the end application to include the build settings used. Add `WOLFTPM_DEBUG` option. 2022-06-24 11:23:19 -07:00
David Garske 0ce7038863 Add `wolfTPM2_SetAuthSession` and `wolfTPM2_NVStoreKey`. 2022-05-23 13:51:28 -07:00
Anthony Hu 915df8599d Correct some documentation. 2022-05-03 12:47:36 -04:00
Anthony Hu d7e7ff57f0 Fixes from review by dgarske. 2022-05-02 18:07:16 -04:00
Elms 3ebc1fc936 Adding a C# wrapper
Tested with swtpm (linux and mono) and on Windows (Visual studio
project and TBS)

Co-authored-by: Anthony Hu <anthony@wolfssl.com>
2022-05-02 13:59:39 -07:00