Re: OID encoding help
Robert Moskowitz <[email protected]> Sun, 7 May 2023 09:40:37 -0400
| Newsgroups | gmane.ietf.x509 |
|---|---|
| Message-ID | <[email protected]> |
Peter, Thanks! On 5/7/23 09:23, Peter Gutmann wrote: > Robert Moskowitz <[email protected]> writes: > >> For initial work we will use oid = "1.3.6.1.4.1.6715.2.6.6", with the >> Endorsement as type BIT-STRING. > The 1 3 6 1 4 1 (note, no dots, that's a common IETF error) the encoding is > { 0x2B x06 x01 x04 x01 }, then for the 6715 it's broken up into 7-bit values, > so { 0x34 0x3B } with the high bit set for a continuation character on the > first one, so 0xB4, then the remaining values as individual bytes. Finally > prepend an 0x06 and the length in bytes. > > So the final value is { 06 0A 2B 06 01 04 01 B4 3B 02 06 02 }. Per my number above, shouldn't the last 3 bytes be 02 06 06 ? Then given a 126-byte Endorsement of: 64508ac066306cc02001003ffe3ff8058eb731967e48293470a73efd272fb7de1fffd73a33c2ae5e12f1a0bb8da5baef394da2d9d5e8ed832001003ffe00000589bbba7c404b16bb7834240bb19829151f5a673f46c600cea5a89ee4833e82a30ccb7db9a55161759a6ac29bc5fd9393a2cc4e378d2f483fcea687ad52012b410e89ca2c86f0630e Do I just concatinate these? Or does the Endorsement need a length byte of 7E in front of it? Bob _______________________________________________ pkix mailing list [email protected] https://www.ietf.org/mailman/listinfo/pkix