90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
if (count == 1 && unusedBits != 0)
@throw [OFInvalidFormatException exception];
if (SIZE_MAX / 8 < count - 1)
@throw [OFOutOfRangeException exception];
bitStringLength = (count - 1) * 8;
bitStringValue = [[DEREncodedContents
subdataWithRange: of_range(1, count - 1)] copy];
if (unusedBits != 0)
bitStringLength -= unusedBits;
} @catch (id e) {
[self release];
@throw e;
}
|
|
|
|
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
if (count == 1 && unusedBits != 0)
@throw [OFInvalidFormatException exception];
if (SIZE_MAX / 8 < count - 1)
@throw [OFOutOfRangeException exception];
bitStringLength = (count - 1) * 8;
bitStringValue = [DEREncodedContents subdataWithRange:
of_range(1, count - 1)];
if (unusedBits != 0)
bitStringLength -= unusedBits;
} @catch (id e) {
[self release];
@throw e;
}
|