Commit Graph

16 Commits (8b8bd479a48a510c6cdb32b888e58a2cda28355c)

Author SHA1 Message Date
David Garske c98ee9a71e Update copyright date. 2024-04-24 10:42:27 -07: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 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 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
David Garske 158ce0dbe0 Adds CSharp wrapper tests for authenticated sessions. Fixes issue with C# handle unloading. 2022-06-24 12:55:37 -07: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