Am 5. März 2012 16:45 schrieb Martin Boßlet <[email protected]>:
> I'm sorry, but I disagree - this is not a legal encoding, even not at the end > of a constructed indefinite length encoding. > > The first 0x00 cannot belong to a multiple length encoding because section > 8.1.3.5 of X.690 states that bit 8 would have to be 1 in that case. So this > must be a single octet length. > > This is why it even would not be valid at the end of an indefinite > constructed value. > "84 00 00 00" (three zero octets) would be a valid encoding > (context-specific tag 0, > zero length followed by and END OF CONTENTS), e.g. as in " 30 80 84 00 00 00", > but four zeroes can not lead to a valid encoding in this case. In any > situation, only > an odd number of zeroes could lead to a valid encoding. I overlooked "length" in "valid length encoding" and read "valid encoding" instead. In that case it's a valid length encoding alright. I apologize for the noise. Best regards, Martin ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
