---------------------------------------------------------------------------- -- X509.ASN -- -- ASN.1 definitions for NetScape KeyGen tag ---------------------------------------------------------------------------- ---- ---- ---- ---- ---- ---- ---- ---- -- C0391W: Duplicate PDU tag ---- -- A0427W: Mixed 1990 and 1994 ASN.1 syntax ---- -- A0433W: 'ANY' is invalid 1994 ASN.1 syntax ---- ---- KEYGEN DEFINITIONS EXPLICIT TAGS ::= BEGIN HUGEINTEGER ::= INTEGER ---- -- tag 0x02 BITSTRING ::= BIT STRING ---- -- tag 0x03 OCTETSTRING ::= OCTET STRING ---- -- tag 0x04 NUMERICSTRING ::= NumericString ---- -- tag 0x12 (18) PRINTABLESTRING ::= PrintableString ---- -- tag 0x13 (19) TELETEXSTRING ::= TeletexString ---- -- tag 0x14 (20) T61STRING ::= T61String ---- -- tag 0x14 (20) VIDEOTEXSTRING ::= VideotexString ---- -- tag 0x15 (21) IA5STRING ::= IA5String ---- -- tag 0x16 (22) GRAPHICSTRING ::= GraphicString ---- -- tag 0x19 (25) VISIBLESTRING ::= VisibleString ---- -- tag 0x1A (26) ISO646STRING ::= ISO646String ---- -- tag 0x1A (26) GENERALSTRING ::= GeneralString ---- -- tag 0x1B (27) UNIVERSALSTRING ::= UniversalString ---- -- tag 0x1C (28) BMPSTRING ::= BMPString ---- -- tag 0x1E (30) -------------------------------------------- -- Algorithm Identifier -------------------------------------------- AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY ---- OPTIONAL } -------------------------------------------- -- Digest Info -------------------------------------------- DigestInfo ::= SEQUENCE { digestAlgorithm AlgorithmIdentifier, digest OCTETSTRING } -------------------------------------------- -- From PKCS #1: ASN.1 representation for public key -------------------------------------------- RSAPublicKey ::= SEQUENCE { modulus HUGEINTEGER, -- n publicExponent INTEGER -- e } ---- -------------------------------------------- -- Subject Public Key Info -------------------------------------------- SubjectPublicKeyInfo ::= SEQUENCE { algorithm AlgorithmIdentifier, subjectPublicKey BITSTRING } ---- -------------------------------------------- -- Signed Content: Cert, CRL or Cert Request -------------------------------------------- SignedContent ::= SEQUENCE { toBeSigned ANY ----, algorithm AlgorithmIdentifier, signature BITSTRING } ---- -------------------------------------------- -- NetScape hack : keygen tag -------------------------------------------- PublicKeyAndChallenge ::= SEQUENCE { spki SubjectPublicKeyInfo, challenge IA5STRING } SignedPublicKeyAndChallenge ::= SEQUENCE { publicKeyAndChallenge PublicKeyAndChallenge, signatureAlgorithm AlgorithmIdentifier, signature BIT STRING } ---- END