Sample keys format

"Blake Ramsdell" <[email protected]> Tue, 17 Aug 1999 14:23:26 -0700
Newsgroups gmane.ietf.smime-examples
Message-ID <[email protected]>
I have two questions about the key formats that should be used for the
public and private keys.

1. Should the public keys be in RFC2459 SubjectPublicKeyInfo format (that
is, the AlgorithmIdentifier followed by BIT STRING wrapping the public key).

2. Should the private keys be in PKCS #8 PrivateKeyInfo format:

PrivateKeyInfo ::= SEQUENCE {
  version Version,
  privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
  privateKey PrivateKey,
  attributes [0] IMPLICIT Attributes OPTIONAL }

Version ::= INTEGER -- 0 for this 

PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier

PrivateKey ::= OCTET STRING

Attributes ::= SET OF Attribute


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.

Blake
--
Blake C. Ramsdell
Worldtalk Corporation
For current info, check http://www.deming.com/users/blaker
Voice +1 425 376 0225 x103  Fax +1 425 376 0915