Atkelar (atkelar) wrote,

Update on the ASN.1 thingie...

Be warned, some lengthy text is here:

As I wrote in my previous journals, I am working on an ASN.1 parser to crunch through some crypto-standards. Why? Just because I can. [insert maniacal laughter here] - ahem. Yes.

Today, after literally dozens of hours of coding I finally finished the "parsing" phase pretty much. Which means, I am on my way but still not finished. In detailed terms: I can now make sense of the modules required to parse the "Certificate Request" module: PKCS-10 {iso member-body us(840) rsadsi(113549) pkcs(1) pkcs-10(10) modules(1) pkcs-10(1)}

While this might not be the latest version involved, it is still a good sample for the parser. It actually is able to make sense of ALL the structures defined in it - which includes loading referenced modules and some recursive constructions.

I feel kinda weird now... The last run I tested yielded about 10 errors in the parsing process... fixed one problem... no errors. You know the feeling when you fully expect an error message and there is none? :D

Up next: making sense of it all, fixing some conceptual "mistakes" (I only realized a few moments ago that a type can have more than one "tag"... not sure if the standard even mentioned that, but hey... small-ish change. But "interpreting" the parsed structures and cross-references might be difficult too. And certainly might show some new parsing Mistakes :)

Tags: coding, computer, programming

  • What a couple of days...

    Yesterday was nice. Had an awesome lunch and then I got myself a nice tablesaw. Not quite "pro" but very close at least. sturdy when compared with…

  • WTF coding #2 - CDNs

    Do you like shooting yourself into your foot? Of course the answer is likely "no!" but some people seem to like it... I can't explain why else…

  • WTF-coding...

    I would like to use the opportunity to start something that might turn into a small series. I like to call it "WTF Coding". Since I'm "native" to the…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded