ASN.1 "INTEGER"?
From: Tom St Denis (tomstdenis_at_iahu.ca)
Date: 07/28/04
- Next message: Paul Rubin: "Re: Erasing an OTP file on a SD card."
- Previous message: John Savard: "Re: Help on da Vinci code"
- Next in thread: Bruce Stephens: "Re: ASN.1 "INTEGER"?"
- Reply: Bruce Stephens: "Re: ASN.1 "INTEGER"?"
- Reply: Francois Grieu: "Re: ASN.1 "INTEGER"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Paul Rubin: "Re: Erasing an OTP file on a SD card."
- Previous message: John Savard: "Re: Help on da Vinci code"
- Next in thread: Bruce Stephens: "Re: ASN.1 "INTEGER"?"
- Reply: Bruce Stephens: "Re: ASN.1 "INTEGER"?"
- Reply: Francois Grieu: "Re: ASN.1 "INTEGER"?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|