Differences From Artifact [2a6ef23950]:
- File tests/OFASN1DERValueTests.m — part of check-in [ea6e0818b0] at 2019-06-23 22:53:38 on branch trunk — Add -[OFASN1BitString DEREncodedValue] (user: js, size: 17426) [annotate] [blame] [check-ins using]
To Artifact [309814cb97]:
- File
tests/OFASN1DERValueTests.m
— part of check-in
[7361cac1f1]
at
2019-06-25 23:29:22
on branch trunk
— OFASN1BitString: Fix unused bits
This was misunderstood to be the number of used bits when it's the
number of unused bits. (user: js, size: 17426) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
100 101 102 103 104 105 106 | count: 0]] && bitString.bitStringLength == 0 && (bitString = [[OFData dataWithItems: "\x03\x0D\x01Hello World\x80" count: 15] ASN1DERValue]) && [bitString.bitStringValue isEqual: [OFData dataWithItems: "Hello World\x80" count: 12]] && | | | 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 | count: 0]] && bitString.bitStringLength == 0 && (bitString = [[OFData dataWithItems: "\x03\x0D\x01Hello World\x80" count: 15] ASN1DERValue]) && [bitString.bitStringValue isEqual: [OFData dataWithItems: "Hello World\x80" count: 12]] && bitString.bitStringLength == 95 && (bitString = [[OFData dataWithItems: "\x03\x81\x80\x00xxxxxxxxxxxxx" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "xxxxxxxxxxxxxxxxxxxxxxxxxxx" count: 131] ASN1DERValue]) && [bitString.bitStringValue |
︙ | ︙ |