summary refs log tree commit diff
path: root/crypto/src/tls/ECCurveType.cs
blob: 969d51b982aae6764e9cc37e860dfec9fec9647c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;

namespace Org.BouncyCastle.Tls
{
    /// <summary>RFC 4492 5.4</summary>
    public abstract class ECCurveType
    {
        /**
         * Indicates the elliptic curve domain parameters are conveyed verbosely, and the
         * underlying finite field is a prime field.
         */
        public const short explicit_prime = 1;

        /**
         * Indicates the elliptic curve domain parameters are conveyed verbosely, and the
         * underlying finite field is a characteristic-2 field.
         */
        public const short explicit_char2 = 2;

        /**
         * Indicates that a named curve is used. This option SHOULD be used when applicable.
         */
        public const short named_curve = 3;

        /*
         * Values 248 through 255 are reserved for private use.
         */
    }
}