Skip to content

Commit 915df85

Browse files
committed
Correct some documentation.
1 parent d7e7ff5 commit 915df85

1 file changed

Lines changed: 12 additions & 24 deletions

File tree

wrapper/CSharp/README.md

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This directory contains the CSharp wrapper for the TPM 2.0 API wrapper API.
44

55

66
Once you have created the simulator, you can build wolfssl as described in the
7-
README.md in the root of this repo. Then you can build wolfTPM:
7+
`README.md` in the root of this repo. Then you can build wolfTPM:
88

99
## Windows
1010

@@ -31,10 +31,12 @@ make check
3131
Prerequisites for linux
3232

3333
```
34-
apt install mono-tools-devel nunit
34+
apt install mono-tools-devel nunit nunit-console
3535
```
3636

37-
You can then build and run the test wolfTPM:
37+
You can then build wolfTPM as described above in the Linux or Windows section
38+
of this document. After that, build and run the wolfTPM CSharp wrapper and run
39+
some tests:
3840

3941
```
4042
cd wrapper/CSharp
@@ -49,27 +51,13 @@ LD_LIBRARY_PATH=../../src/.libs/ nunit-console wolfTPM.dll
4951
You should see something similar to the following output:
5052

5153
```
52-
NUnit-Console version 2.6.4.0
53-
Copyright (C) 2002-2012 Charlie Poole.
54-
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
55-
Copyright (C) 2000-2002 Philip Craig.
56-
All Rights Reserved.
57-
58-
Runtime Environment -
59-
OS Version: Unix 5.13.0.40
60-
CLR Version: 4.0.30319.42000 ( Mono 4.0 ( 6.8.0.105 (Debian 6.8.0.105+dfsg-2 Wed Feb 26 23:23:50 UTC 2020) ) )
61-
62-
ProcessModel: Default DomainUsage: Single
63-
Execution Runtime: mono-4.0
64-
Selected test(s): tpm_csharp_test.WolfTPMTest.TryFillBufferWithRandom
65-
.wolfSSL Entering wolfCrypt_Init
66-
wolfSSL Entering wolfCrypt_Cleanup
67-
buf: { 44, 95, 206, 69, 252, 157, 173, 149, 26, 160, 21, 5, 35, 19, 255, 29, 251, 228, 206, 36, 77, 79, 160, 42, 25, 172, 82, 172, 152, 143, 179, 147, 52, 211, 238, 63, 34, 227, 243, 155, 17, 77, 135, 233, 103, 39, 211, 180, 55, 54, 36, 180, 87, 168, 28, 143, 104, 175, 176, 156, 154, 8, 114, 143, 123, 99, 110, 247, 46, 193, 93, 54, 208, 128, 162, 190, 225, 255, 109, 44, 8, 153, 21, 162, 139, 70, 7, 73, 13, 145, 157, 111, 20, 151, 101, 44, 45, 154, 159, 139, 153, 48, 117, 69, 179, 186, 48, 225, 20, 145, 120, 78, 58, 228, 4, 146, 241, 195, 121, 94, 44, 92, 246, 198, 71, 122, 176, 133, 21, 27, 41, 17, 7, 96, 122, 155, 105, 57, 150, 45, 63, 165, 136, 195, 173, 160, 137, 136, 207, 19, 60, 140, 2, 203, 246, 248, 179, 170, 203, 153, 154, 229, 104, 200, 141, 94, 139, 25, 103, 235, 116, 97, 186, 29, 32, 133, 205, 122, 230, 51, 88, 195, 69, 158, 199, 255, 212, 117, 3, 110, 201, 179, 138, 242, 172, 160, 121, 46, 117, 41, 185, 11, 22, 99, 4, 214, 37, 179, 246, 71, 146, 168, 116, 28, 146, 221, 53, 21, 5, 18, 84, 57, 137, 171, 237, 233, 215, 91, 88, 4, 205, 207, 218, 74, 46, 105, 106, 55, 254, 211, 186, 151, 136, 81, 128, 33, 77, 218, 203, 19, 164, 76, 177, 2, 185, 212, } (256 bytes)
54+
Selected test(s): tpm_csharp_test.WolfTPMTest.TrySelfTest
6855
69-
Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0.0747956 seconds
70-
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
71-
```
56+
wolfSSL Entering wolfCrypt_Init
57+
.
58+
Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0.1530346 seconds
7259
73-
If you run this multiple time, you will see the content of the buffer changing
74-
for each execution.
60+
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
7561
62+
wolfSSL Entering wolfCrypt_Cleanup
63+
```

0 commit comments

Comments
 (0)