Hi,
Clause C.11 Integer to octetstring
int2oct(in integer value, in integer length) return octetstring
"The number of hexadecimal digits provided shall be multiples of 2 since one octet is composed of two hexadecimal digits."
Does it mean that octetstring length is measured in hexadecimal digits, not in octets?
I have expected that length is measured in octets according Clause C.13 and that following description should be changed from:
"If the conversion yields a value with fewer hexadecimal digits than specified in the length parameter, then the hexstring shall be padded on the left with zeros. A test case error shall occur if the value is negative or if the resulting hexstring contains more hexadecimal digits than specified in the length parameter."
to
"If the conversion yields a value with fewer OCTETS than specified in the length parameter, then the OCTETstring shall be padded on the left with zeros. A test case error shall occur if the value is negative or if the resulting OCTETstring contains more OCTETS than specified in the length parameter."
BR,
Mariusz Kupiec