HEX STRING Type in NCL Programming
The HEX STRING type is a Mapping Services extension to ASN.1, but is processed as a base ASN.1 type. It is identical in all respects to the ASN.1 OCTET STRING type except for its external form representation.
12-1
The HEX STRING type is a Mapping Services extension to ASN.1, but is processed as a base ASN.1 type. It is identical in all respects to the ASN.1 OCTET STRING type except for its external form representation.
- External Form - Input
- Valid input consists of a string of one or more local characters, each selected from the set 0123456789ABCDEF. Each pair of hexadecimal characters represents a single byte value. If an odd number of characters is supplied the string is treated as though padded on the left with a single zero.
- External Form - Output
- Data is returned in hexadecimal characters, as for input. An even number of characters is always returned.
- Local Form and Behavior
- Each two hexadecimal characters of input represents the actual data to be stored in a single byte. Otherwise behavior is as for OCTET STRING.