@@ -55,33 +55,35 @@ class TestSignatureRecord(_test_record_base._TestRecordBase):
55
55
" '1' does not have a known Certificate Format mapping" ),
56
56
]
57
57
test_decode_valid_data = [
58
- ('200002000000 ' ,
58
+ ('2000020000000000 ' ,
59
59
(None , 'SHA-256' , b'' , '' , 'X.509' , [], '' )),
60
- (('200b02473045022100a410c28fd9437fd24f6656f121e62bcc5f65e36257f5faadf '
61
- '68e3e83d40d481a0220335b1dff8d6fe722fcf7018be9684d2de5670b256fdfc02a '
62
- 'a25bdae16f624b800000 ' ),
60
+ (('200b0200473045022100a410c28fd9437fd24f6656f121e62bcc5f65e36257f5faa '
61
+ 'df68e3e83d40d481a0220335b1dff8d6fe722fcf7018be9684d2de5670b256fdfc0 '
62
+ '2aa25bdae16f624b80000000 ' ),
63
63
('ECDSA-P256' , 'SHA-256' ,
64
64
(b'0E\x02 !\x00 \xa4 \x10 \xc2 \x8f \xd9 C\x7f \xd2 OfV\xf1 !\xe6 +\xcc _e\xe3 bW'
65
65
b'\xf5 \xfa \xad \xf6 \x8e >\x83 \xd4 \r H\x1a \x02 3[\x1d \xff \x8d o\xe7 "\xfc '
66
66
b'\xf7 \x01 \x8b \xe9 hM-\xe5 g\x0b %o\xdf \xc0 *\xa2 [\xda \xe1 obK\x80 ' ),
67
67
'' , 'X.509' , [], '' )),
68
- (('2080020d7369676e61747572655f757269800f63657274696669636174655f75726 '
69
- '9 ' ),
68
+ (('208002000d7369676e61747572655f75726980000f63657274696669636174655f7 '
69
+ '57269 ' ),
70
70
(None , 'SHA-256' , b'' , 'signature_uri' , 'X.509' , [],
71
71
'certificate_uri' )),
72
- ('20000200020131013200 ' ,
72
+ ('2000020000020001310001320000 ' ,
73
73
(None , None , None , None , None , [b'1' , b'2' ], None )),
74
- ('200b02001000 ' ,
74
+ ('200b020000100000 ' ,
75
75
('ECDSA-P256' , 'SHA-256' , None , None , 'M2M' , None , None )),
76
76
]
77
77
test_decode_error_data = [
78
- ('100002000000' , "decoding of version 16 is not supported" ),
79
- ('20800201800000' , "Signature URI field is not valid UTF-8 data" ),
80
- ('20800201000000' , ("Signature URI field contains "
81
- "invalid characters" )),
82
- ('20000200800180' , "Certificate URI field is not valid UTF-8 data" ),
83
- ('20000200800100' , ("Certificate URI field contains "
84
- "invalid characters" )),
78
+ ('10000200000000' , "decoding of version 16 is not supported" ),
79
+ ('2080020001800000' , ("Signature URI field is "
80
+ "not valid UTF-8 data" )),
81
+ ('2080020001000000' , ("Signature URI field contains "
82
+ "invalid characters" )),
83
+ ('200002000080000180' , ("Certificate URI field is "
84
+ "not valid UTF-8 data" )),
85
+ ('200002000080000100' , ("Certificate URI field contains "
86
+ "invalid characters" )),
85
87
]
86
88
test_decode_relax = None
87
89
test_encode_error = None
0 commit comments