ASN.1 "INTEGER"?

From: Tom St Denis (tomstdenis_at_iahu.ca)
Date: 07/28/04


Date: Wed, 28 Jul 2004 16:52:24 GMT

I want to switch out the LTC style RSA keys for PKCS #1 style keys by v0.98
of my lib. Switching up the math is easy [I do CRT differently but that's
not super important].

What I am having a problem with is figuring out ASN.1's "INTEGER" type. I
looked up section 18.4 of one of the freely available ITU documents and it
only specifies the grammar for writing ASN.1 syntax.

So in PKCS #1 when it specifies that a private key has "n INTEGER" how is
that actually stored in memory? I assume you use OS2IP but how does the
interpretter know how large the modulus is [and therefore how much to read
in per int?].

So far neither ITU or PKCS publicly available documents are complete enough
to write a functional implementation [without poking the behaviour of BSAFE
or asking the people who wrote it which is just cheating] of RSA. I won't
even go into ECC and DH for the time being...

Tom



Relevant Pages

  • Re: Newsreader: Best of the bunch?
    ... I'm talking about COMMON functions such as ... which gives me that, I'll switch to it. ... When I use another editor, I constantly hit wrong keys, ...
    (Debian-User)
  • Re: OT Reptitive Strain Injury
    ... So far the doctors have offered nothing ... are reprogrammable and they have a cluster of keys under each thumb. ... Switch and don't look back. ... layouts) but if you already have problems you don't want to be tensing ...
    (comp.lang.lisp)
  • Re: [Vim] - Cursor movement when in insert mode or cmdline mode (: or ex)
    ... but, this is one "scheme" I have considered - possibly using Alt instead of Ctrl if feasible - because, on my keyboard at least, the Alt keys are a lot easier to access than the Ctrl keys. ... it still bothers me to have to switch to different keys when I switch editing modes. ...
    (comp.editors)
  • Re: Logitech Keyboard F9
    ... Keyboards that have dual functions on the function keys have a switch to ... switch to the standard function set, the Word functions should already be ...
    (microsoft.public.word.docmanagement)
  • Re: Oh, yeah: Unable to switch to TTY from X
    ... I *can* switch from VT to ... Pull up a program that uses F keys ... (or to the root window, if there is no window at present), ... andrew@debian:~$ xmodmap -pk | grep VT ...
    (Debian-User)