Correct ASN.1 encoding

Correct ASN.1 encoding

Secure Home | Search | About
 General Computer Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Correct ASN.1 encoding Dazza T 04-01-2006
Posted by Dazza T on April 1, 2006, 7:11 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Can someone please confirm for me the correct way to encode an empty
IMPLICIT OPTIONAL tagged value.

As far as I know it should *always* be omitted under both BER and DER
encodings, but I can't lay my hands on something official that confirms it
(and so settle an argument).

In this example, `ThisOne' is empty:
Foo ::= SEQUENCE {
version INTEGER,
extra[0] IMPLICIT ThisOne OPTIONAL,
}
ThisOne ::= SET OF Bar

So should the encoding be
(A) 30 03 02 01 01
or
(B) 30 05 02 01 01 A0 00

Is (B) ever permissible?



Similar ThreadsPosted
finding correct newsgroups to help with McAfee problem February 28, 2007, 9:41 am
HTTPS and URL encoding May 26, 2004, 7:04 pm
Yahoo Multiple Vulnerabilities ( Authentication Bypass, Session Binding, Cookie Encoding Security Weakness, Cross-Site Scripting and URL Redirection ) June 21, 2006, 1:51 pm

The site map in XML format XML site map

Contact Us | Privacy Policy