Fix TSS formatting #802
Annotations
4 errors
Annotate Test Suite Results:
tss2/encode_test.go#L97
encode_test.go:97:
Error Trace: /home/runner/work/crypto/crypto/tpm/tss2/encode_test.go:97
Error: Not equal:
expected: []byte{0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa, 0x4d, 0x43, 0x67, 0x47, 0x42, 0x6d, 0x65, 0x42, 0x42, 0x51, 0x6f, 0x42, 0x41, 0x36, 0x41, 0x44, 0x41, 0x51, 0x48, 0x2f, 0x41, 0x67, 0x52, 0x41, 0x41, 0x41, 0x41, 0x42, 0x42, 0x41, 0x67, 0x41, 0x42, 0x6e, 0x42, 0x31, 0x59, 0x6d, 0x78, 0x70, 0x59, 0x77, 0x51, 0x4a, 0x41, 0x41, 0x64, 0x77, 0x63, 0x6d, 0x6c, 0x32, 0x59, 0x58, 0x52, 0x6c, 0xa, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa}
actual : []byte{0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa, 0x4d, 0x43, 0x51, 0x47, 0x42, 0x6d, 0x65, 0x42, 0x42, 0x51, 0x6f, 0x42, 0x41, 0x36, 0x41, 0x44, 0x41, 0x51, 0x48, 0x2f, 0x41, 0x67, 0x52, 0x41, 0x41, 0x41, 0x41, 0x42, 0x42, 0x41, 0x5a, 0x77, 0x64, 0x57, 0x4a, 0x73, 0x61, 0x57, 0x4d, 0x45, 0x42, 0x33, 0x42, 0x79, 0x61, 0x58, 0x5a, 0x68, 0x64, 0x47, 0x55, 0x3d, 0xa, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa}
Diff:
--- Expected
+++ Actual
@@ -1,10 +1,10 @@
-([]uint8) (len=121) {
+([]uint8) (len=117) {
00000000 2d 2d 2d 2d 2d 42 45 47 49 4e 20 54 53 53 32 20 |-----BEGIN TSS2 |
00000010 50 52 49 56 41 54 45 20 4b 45 59 2d 2d 2d 2d 2d |PRIVATE KEY-----|
- 00000020 0a 4d 43 67 47 42 6d 65 42 42 51 6f 42 41 36 41 |.MCgGBmeBBQoBA6A|
- 00000030 44 41 51 48 2f 41 67 52 41 41 41 41 42 42 41 67 |DAQH/AgRAAAABBAg|
- 00000040 41 42 6e 42 31 59 6d 78 70 59 77 51 4a 41 41 64 |ABnB1YmxpYwQJAAd|
- 00000050 77 63 6d 6c 32 59 58 52 6c 0a 2d 2d 2d 2d 2d 45 |wcml2YXRl.-----E|
- 00000060 4e 44 20 54 53 53 32 20 50 52 49 56 41 54 45 20 |ND TSS2 PRIVATE |
- 00000070 4b 45 59 2d 2d 2d 2d 2d 0a |KEY-----.|
+ 00000020 0a 4d 43 51 47 42 6d 65 42 42 51 6f 42 41 36 41 |.MCQGBmeBBQoBA6A|
+ 00000030 44 41 51 48 2f 41 67 52 41 41 41 41 42 42 41 5a |DAQH/AgRAAAABBAZ|
+ 00000040 77 64 57 4a 73 61 57 4d 45 42 33 42 79 61 58 5a |wdWJsaWMEB3ByaXZ|
+ 00000050 68 64 47 55 3d 0a 2d 2d 2d 2d 2d 45 4e 44 20 54 |hdGU=.-----END T|
+ 00000060 53 53 32 20 50 52 49 56 41 54 45 20 4b 45 59 2d |SS2 PRIVATE KEY-|
+ 00000070 2d 2d 2d 2d 0a |----.|
}
Test: TestTPMKey_EncodeToMemory/ok
---
|
Annotate Test Suite Results:
tss2/encode_test.go#L130
encode_test.go:130:
Error Trace: /home/runner/work/crypto/crypto/tpm/tss2/encode_test.go:130
Error: Not equal:
expected: &pem.Block{Type:"TSS2 PRIVATE KEY", Headers:map[string]string(nil), Bytes:[]uint8{0x30, 0x28, 0x6, 0x6, 0x67, 0x81, 0x5, 0xa, 0x1, 0x3, 0xa0, 0x3, 0x1, 0x1, 0xff, 0x2, 0x4, 0x40, 0x0, 0x0, 0x1, 0x4, 0x8, 0x0, 0x6, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4, 0x9, 0x0, 0x7, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65}}
actual : &pem.Block{Type:"TSS2 PRIVATE KEY", Headers:map[string]string(nil), Bytes:[]uint8{0x30, 0x24, 0x6, 0x6, 0x67, 0x81, 0x5, 0xa, 0x1, 0x3, 0xa0, 0x3, 0x1, 0x1, 0xff, 0x2, 0x4, 0x40, 0x0, 0x0, 0x1, 0x4, 0x6, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4, 0x7, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65}}
Diff:
--- Expected
+++ Actual
@@ -3,6 +3,6 @@
Headers: (map[string]string) <nil>,
- Bytes: ([]uint8) (len=42) {
- 00000000 30 28 06 06 67 81 05 0a 01 03 a0 03 01 01 ff 02 |0(..g...........|
- 00000010 04 40 00 00 01 04 08 00 06 70 75 62 6c 69 63 04 |[email protected].|
- 00000020 09 00 07 70 72 69 76 61 74 65 |...private|
+ Bytes: ([]uint8) (len=38) {
+ 00000000 30 24 06 06 67 81 05 0a 01 03 a0 03 01 01 ff 02 |0$..g...........|
+ 00000010 04 40 00 00 01 04 06 70 75 62 6c 69 63 04 07 70 |[email protected]|
+ 00000020 72 69 76 61 74 65 |rivate|
}
Test: TestEncode/ok
---
|
Annotate Test Suite Results:
tss2/encode_test.go#L156
encode_test.go:156:
Error Trace: /home/runner/work/crypto/crypto/tpm/tss2/encode_test.go:156
Error: Not equal:
expected: []byte{0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa, 0x4d, 0x43, 0x67, 0x47, 0x42, 0x6d, 0x65, 0x42, 0x42, 0x51, 0x6f, 0x42, 0x41, 0x36, 0x41, 0x44, 0x41, 0x51, 0x48, 0x2f, 0x41, 0x67, 0x52, 0x41, 0x41, 0x41, 0x41, 0x42, 0x42, 0x41, 0x67, 0x41, 0x42, 0x6e, 0x42, 0x31, 0x59, 0x6d, 0x78, 0x70, 0x59, 0x77, 0x51, 0x4a, 0x41, 0x41, 0x64, 0x77, 0x63, 0x6d, 0x6c, 0x32, 0x59, 0x58, 0x52, 0x6c, 0xa, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa}
actual : []byte{0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x42, 0x45, 0x47, 0x49, 0x4e, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa, 0x4d, 0x43, 0x51, 0x47, 0x42, 0x6d, 0x65, 0x42, 0x42, 0x51, 0x6f, 0x42, 0x41, 0x36, 0x41, 0x44, 0x41, 0x51, 0x48, 0x2f, 0x41, 0x67, 0x52, 0x41, 0x41, 0x41, 0x41, 0x42, 0x42, 0x41, 0x5a, 0x77, 0x64, 0x57, 0x4a, 0x73, 0x61, 0x57, 0x4d, 0x45, 0x42, 0x33, 0x42, 0x79, 0x61, 0x58, 0x5a, 0x68, 0x64, 0x47, 0x55, 0x3d, 0xa, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0x45, 0x4e, 0x44, 0x20, 0x54, 0x53, 0x53, 0x32, 0x20, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x20, 0x4b, 0x45, 0x59, 0x2d, 0x2d, 0x2d, 0x2d, 0x2d, 0xa}
Diff:
--- Expected
+++ Actual
@@ -1,10 +1,10 @@
-([]uint8) (len=121) {
+([]uint8) (len=117) {
00000000 2d 2d 2d 2d 2d 42 45 47 49 4e 20 54 53 53 32 20 |-----BEGIN TSS2 |
00000010 50 52 49 56 41 54 45 20 4b 45 59 2d 2d 2d 2d 2d |PRIVATE KEY-----|
- 00000020 0a 4d 43 67 47 42 6d 65 42 42 51 6f 42 41 36 41 |.MCgGBmeBBQoBA6A|
- 00000030 44 41 51 48 2f 41 67 52 41 41 41 41 42 42 41 67 |DAQH/AgRAAAABBAg|
- 00000040 41 42 6e 42 31 59 6d 78 70 59 77 51 4a 41 41 64 |ABnB1YmxpYwQJAAd|
- 00000050 77 63 6d 6c 32 59 58 52 6c 0a 2d 2d 2d 2d 2d 45 |wcml2YXRl.-----E|
- 00000060 4e 44 20 54 53 53 32 20 50 52 49 56 41 54 45 20 |ND TSS2 PRIVATE |
- 00000070 4b 45 59 2d 2d 2d 2d 2d 0a |KEY-----.|
+ 00000020 0a 4d 43 51 47 42 6d 65 42 42 51 6f 42 41 36 41 |.MCQGBmeBBQoBA6A|
+ 00000030 44 41 51 48 2f 41 67 52 41 41 41 41 42 42 41 5a |DAQH/AgRAAAABBAZ|
+ 00000040 77 64 57 4a 73 61 57 4d 45 42 33 42 79 61 58 5a |wdWJsaWMEB3ByaXZ|
+ 00000050 68 64 47 55 3d 0a 2d 2d 2d 2d 2d 45 4e 44 20 54 |hdGU=.-----END T|
+ 00000060 53 53 32 20 50 52 49 56 41 54 45 20 4b 45 59 2d |SS2 PRIVATE KEY-|
+ 00000070 2d 2d 2d 2d 0a |----.|
}
Test: TestEncodeToMemory/ok
---
|
Run Test Suite
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading