Re: Sample keys format

[email protected] (Peter Gutmann) Wed, 18 Aug 1999 11:03:16 +1200 (NZST)
Newsgroups gmane.ietf.smime-examples
Message-ID <[email protected]>
"Blake Ramsdell" <[email protected]> writes:

>The problem that I have (and that I suspect that other people might have) is
>that the keys need to be in this format in order to "inject" them into my 
>code.  Granted it is trivial to add packaging around the keys, I just wanted
>to see if there was any preference.

What's probably easiest is to represent them as byte[] + length, it should
be possible to tie this into any implementation with a minimum of code.  If
you use any non-generic format and you end up making it simple for one or two 
people and really painful for a lot of others.  If there was some widely-
accepted simple format (the former rules out PKCS #8, the latter PKCS #12)
then it'd be better to use that.

An RFC specifying PKCS #8 formats for common algorithms (which you currently
have to scrape together from PKCS #8, PKCS #11, PKCS #15, and some expired RFC
drafts held in a disused toilet in the basement in a box marked "Beware of the
leopard") would be useful.  I guess I could volunteer for it if pressed.

Peter.