I'm attending an ETSI meeting. I hope someone here can answer to Nicholas.
-------- Original Message -------- Subject: DER encoding question: SET OF Date: Tue, 19 Mar 2002 18:06:42 +0100 From: "Nicholas, Richard" <[EMAIL PROTECTED]> To: "DUBUISSON Olivier FTRD/DTL" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> Gentlemen, According to paragraph 11.6 of X.690 (1997), the components of a SET OF are sorted by comparing them as if they were octet strings with their lengths padded so they are the same length (my paraphrasing). Obviously the tags of all of the components will be equal (when DER encoded at least). Is the first byte that is used for comparison the first length byte or the first byte of the component value? The following is an example to clarify if the question is not clearly stated. Assuming these are the DER-encoded components of a SET OF (its a SET OF Attribute), which of the following two orderings is correct? 30 18 06 09 2A 86 48 86 F7 OD 01 09 03 31 0B 06 ... 30 1C 06 09 2A 86 48 86 F7 OD 01 09 05 31 0F 17 ... 30 23 06 09 2A 86 48 86 F7 OD 01 09 04 31 16 04 ... 30 18 06 09 2A 86 48 86 F7 OD 01 09 03 31 0B 06 ... 30 23 06 09 2A 86 48 86 F7 OD 01 09 04 31 16 04 ... 30 1C 06 09 2A 86 48 86 F7 OD 01 09 05 31 0F 17 ... Thank you in advance. - Rich --------------------------- Richard E. Nicholas Principal Secure Systems Engineer Getronics Government Solutions, LLC [EMAIL PROTECTED] (301) 939-2722
