Botan
3.14.1
Crypto and TLS for C&
src
lib
pubkey
ec_group
ec_point_format.h
Go to the documentation of this file.
1
/*
2
* (C) 2025 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#ifndef BOTAN_EC_POINT_FORMAT_H_
8
#define BOTAN_EC_POINT_FORMAT_H_
9
10
#include <botan/types.h>
11
12
/*
13
* This header is public, but avoid including it directly. Instead
14
* get the contents via ec_group.h.
15
*
16
* TODO(Botan4) move EC_Point_Format to ec_group.h and remove this header
17
*/
18
19
namespace
Botan
{
20
21
/**
22
* This enum indicates the method used to encode the EC parameters
23
*
24
* @warning All support for explicit or implicit domain encodings
25
* will be removed in Botan4. Only named curves will be supported.
26
*
27
* TODO(Botan4) remove this enum
28
*/
29
enum class
EC_Group_Encoding
: uint8_t {
30
Explicit
= 0,
31
ImplicitCA
= 1,
32
NamedCurve
= 2,
33
34
EC_DOMPAR_ENC_EXPLICIT
=
Explicit
,
35
EC_DOMPAR_ENC_IMPLICITCA
=
ImplicitCA
,
36
EC_DOMPAR_ENC_OID
=
NamedCurve
37
};
38
39
/**
40
* This enum indicates the format used to encode an elliptic curve point
41
* as an octet string, as specified in SEC1 section 2.3.3
42
*/
43
enum class
EC_Point_Format
: uint8_t {
44
Uncompressed
= 0,
45
Compressed
= 1,
46
47
UNCOMPRESSED
BOTAN_DEPRECATED
(
"Use EC_Point_Format::Uncompressed"
) =
Uncompressed
,
48
COMPRESSED
BOTAN_DEPRECATED
(
"Use EC_Point_Format::Compressed"
) =
Compressed
,
49
50
Hybrid
BOTAN_DEPRECATED
(
"Hybrid point encoding is deprecated"
) = 2,
51
HYBRID
BOTAN_DEPRECATED
(
"Hybrid point encoding is deprecated"
) = 2
52
};
53
54
}
// namespace Botan
55
56
#endif
BOTAN_DEPRECATED
#define BOTAN_DEPRECATED(msg)
Definition
api.h:73
Botan
Definition
alg_id.cpp:14
Botan::EC_Point_Format
EC_Point_Format
Definition
ec_point_format.h:43
Botan::EC_Point_Format::HYBRID
@ HYBRID
Definition
ec_point_format.h:51
Botan::EC_Point_Format::Compressed
@ Compressed
Definition
ec_point_format.h:45
Botan::EC_Point_Format::COMPRESSED
@ COMPRESSED
Definition
ec_point_format.h:48
Botan::EC_Point_Format::UNCOMPRESSED
@ UNCOMPRESSED
Definition
ec_point_format.h:47
Botan::EC_Point_Format::Uncompressed
@ Uncompressed
Definition
ec_point_format.h:44
Botan::EC_Point_Format::Hybrid
@ Hybrid
Definition
ec_point_format.h:50
Botan::EC_Group_Encoding
EC_Group_Encoding
Definition
ec_point_format.h:29
Botan::EC_Group_Encoding::NamedCurve
@ NamedCurve
Definition
ec_point_format.h:32
Botan::EC_Group_Encoding::ImplicitCA
@ ImplicitCA
Definition
ec_point_format.h:31
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_EXPLICIT
@ EC_DOMPAR_ENC_EXPLICIT
Definition
ec_point_format.h:34
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_OID
@ EC_DOMPAR_ENC_OID
Definition
ec_point_format.h:36
Botan::EC_Group_Encoding::Explicit
@ Explicit
Definition
ec_point_format.h:30
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_IMPLICITCA
@ EC_DOMPAR_ENC_IMPLICITCA
Definition
ec_point_format.h:35
Generated by
1.16.1