diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-22 11:55:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-05-22 13:37:59 +0200 |
commit | f099342688710138ba8cd94e47846bda5c331faf (patch) | |
tree | 5782228c5fa01060673e3273c583e22b70b25202 /lib/gnutls.asn | |
parent | 8dcf7e8299fed143c2e61500da55b5e5910eb54c (diff) | |
download | gnutls-f099342688710138ba8cd94e47846bda5c331faf.tar.gz |
gnutls_pk_params_st is used internally to transfer public key parameters. This replaces the raw bigint_t arrays.
Diffstat (limited to 'lib/gnutls.asn')
-rw-r--r-- | lib/gnutls.asn | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/gnutls.asn b/lib/gnutls.asn index f485c27d6d..64e05199b3 100644 --- a/lib/gnutls.asn +++ b/lib/gnutls.asn @@ -89,5 +89,18 @@ DHParameter ::= SEQUENCE { privateValueLength INTEGER OPTIONAL } +-- ECC from RFC5480 +ECPoint ::= OCTET STRING + +ECParameters ::= CHOICE { + namedCurve OBJECT IDENTIFIER +} + +ECPrivateKey ::= SEQUENCE { + Version INTEGER, -- { ecPrivkeyVer1(1) } + privateKey OCTET STRING, + parameters [0] ECParameters OPTIONAL, + publicKey [1] BIT STRING OPTIONAL +} END |