Commit Graph

12 Commits (4982af8c2bd39831aad9e12980609290d882241c)

Author SHA1 Message Date
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 f3610b0a11 CSharp wrapper support for setting unique with test case. 2022-06-28 17:07:32 -07:00
Anthony Hu 37fbc1ddff Adding CSharp wrapper for `wolfTPM2_CreatePrimaryKey()`. 2022-06-27 10:46:50 -07: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 0ce7038863 Add `wolfTPM2_SetAuthSession` and `wolfTPM2_NVStoreKey`. 2022-05-23 13:51:28 -07: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