diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-26 23:01:52 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-01-26 23:01:52 +0000 |
commit | 36d88b8cb6dea5f3aa11ba5c3f4ccc64d64b36ba (patch) | |
tree | b2f6b840c3c1195b631b01ce9f93ede4112bd197 /lib/gnutls.asn | |
parent | c9c1d23b48fdd5cec55753937ddfc1307fb4be13 (diff) | |
download | gnutls-36d88b8cb6dea5f3aa11ba5c3f4ccc64d64b36ba.tar.gz |
Added stuff for DSS certificates (not ready yet)
Diffstat (limited to 'lib/gnutls.asn')
-rw-r--r-- | lib/gnutls.asn | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/gnutls.asn b/lib/gnutls.asn new file mode 100644 index 0000000000..da195bfec6 --- /dev/null +++ b/lib/gnutls.asn @@ -0,0 +1,80 @@ +GNUTLS { 0 } + +DEFINITIONS EXPLICIT TAGS ::= + +BEGIN + +-- This file contains parts of PKCS-1 structures and some stuff +-- required for DSA keys. + +RSAPublicKey ::= SEQUENCE { + modulus INTEGER, -- n + publicExponent INTEGER -- e +} + +-- +-- Representation of RSA private key with information for the +-- CRT algorithm. +-- +RSAPrivateKey ::= SEQUENCE { + version Version, + modulus INTEGER, -- (Usually large) n + publicExponent INTEGER, -- (Usually small) e + privateExponent INTEGER, -- (Usually large) d + prime1 INTEGER, -- (Usually large) p + prime2 INTEGER, -- (Usually large) q + exponent1 INTEGER, -- (Usually large) d mod (p-1) + exponent2 INTEGER, -- (Usually large) d mod (q-1) + coefficient INTEGER, -- (Usually large) (inverse of q) mod p + otherPrimeInfos OtherPrimeInfos OPTIONAL +} + +Version ::= INTEGER { two-prime(0), multi(1) } +-- (CONSTRAINED BY {-- version must be multi if otherPrimeInfos present --}) + +OtherPrimeInfos ::= SEQUENCE SIZE(1..MAX) OF OtherPrimeInfo + +OtherPrimeInfo ::= SEQUENCE { + prime INTEGER, -- ri + exponent INTEGER, -- di + coefficient INTEGER -- ti +} + +-- for signature calculation +-- added by nmav + +AlgorithmIdentifier ::= SEQUENCE { + algorithm OBJECT IDENTIFIER, + parameters ANY DEFINED BY algorithm OPTIONAL +} + -- contains a value of the type + -- registered for use with the + -- algorithm object identifier value + +DigestInfo ::= SEQUENCE { + digestAlgorithm DigestAlgorithmIdentifier, + digest Digest +} + +DigestAlgorithmIdentifier ::= AlgorithmIdentifier + +Digest ::= OCTET STRING + +DSAPublicKey ::= INTEGER + +DSAParameters ::= SEQUENCE { + p INTEGER, + q INTEGER, + g INTEGER +} + +DSAPrivateKey ::= SEQUENCE { + version INTEGER, -- should be zero + p INTEGER, + q INTEGER, + g INTEGER, + Y INTEGER, -- public + priv INTEGER +} + +END |