Commit Graph

29 Commits (1603cfdaaf9a7e4b93458dc0bdf9e66140740e65)

Author SHA1 Message Date
David Garske c98ee9a71e Update copyright date. 2024-04-24 10:42:27 -07:00
David Garske 25dd0d46c0 Fix for using type not available with wolfCrypt only. 2023-01-12 16:59:25 -08:00
Anthony Hu ab09e83c30 Call Close() because Windows won't flush unless its called. 2022-09-08 10:50:46 -04:00
David Garske 042f4c51aa Simplified fix for CSharp `SetCustomExtension`. 2022-08-26 10:52:31 -07:00
Anthony Hu ccee50355d Changes from peer review feedback. 2022-08-26 09:57:13 -04:00
Anthony Hu fde458152f Save OIDs to a persistent buffer. 2022-08-25 16:23:19 -04:00
David Garske f39b1262af Adds `SetKeyAuthPassword` for `KeyBlob`. Also adds missing test case. 2022-08-10 08:20:33 -07:00
David Garske cf89cc42a7 Documentation fixes. 2022-08-01 10:57:31 -07:00
David Garske 54a53c03b6 Added more CSharp wrapper inline documentation. Fixed doxy error on `wolfTPM2_GetKeyBlobAsBuffer`. 2022-07-27 10:03:22 -07:00
Anthony Hu eeff3dc77b API documentation for the CSharp wrappers. 2022-07-27 12:15:31 -04:00
David Garske 752ef9d98e Added CSharp wrapper documentation for CSR functions. Duplicates existing doxygen from tpm2_wrap.h to inline CSharp function documentation format. 2022-07-21 16:22:24 -07:00
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