Botan
3.11.0
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
17
namespace
Botan
{
18
19
/**
20
* This enum indicates the method used to encode the EC parameters
21
*
22
* @warning All support for explicit or implicit domain encodings
23
* will be removed in Botan4. Only named curves will be supported.
24
*
25
* TODO(Botan4) remove this enum
26
*/
27
enum class
EC_Group_Encoding
: uint8_t {
28
Explicit
= 0,
29
ImplicitCA
= 1,
30
NamedCurve
= 2,
31
32
EC_DOMPAR_ENC_EXPLICIT
=
Explicit
,
33
EC_DOMPAR_ENC_IMPLICITCA
=
ImplicitCA
,
34
EC_DOMPAR_ENC_OID
=
NamedCurve
35
};
36
37
enum class
EC_Point_Format
: uint8_t {
38
Uncompressed
= 0,
39
Compressed
= 1,
40
41
UNCOMPRESSED
BOTAN_DEPRECATED
(
"Use EC_Point_Format::Uncompressed"
) =
Uncompressed
,
42
COMPRESSED
BOTAN_DEPRECATED
(
"Use EC_Point_Format::Compressed"
) =
Compressed
,
43
44
Hybrid
BOTAN_DEPRECATED
(
"Hybrid point encoding is deprecated"
) = 2,
45
HYBRID
BOTAN_DEPRECATED
(
"Hybrid point encoding is deprecated"
) = 2
46
};
47
48
}
// namespace Botan
49
50
#endif
BOTAN_DEPRECATED
#define BOTAN_DEPRECATED(msg)
Definition
api.h:73
Botan
Definition
alg_id.cpp:13
Botan::EC_Point_Format
EC_Point_Format
Definition
ec_point_format.h:37
Botan::EC_Point_Format::HYBRID
@ HYBRID
Definition
ec_point_format.h:45
Botan::EC_Point_Format::Compressed
@ Compressed
Definition
ec_point_format.h:39
Botan::EC_Point_Format::COMPRESSED
@ COMPRESSED
Definition
ec_point_format.h:42
Botan::EC_Point_Format::UNCOMPRESSED
@ UNCOMPRESSED
Definition
ec_point_format.h:41
Botan::EC_Point_Format::Uncompressed
@ Uncompressed
Definition
ec_point_format.h:38
Botan::EC_Point_Format::Hybrid
@ Hybrid
Definition
ec_point_format.h:44
Botan::EC_Group_Encoding
EC_Group_Encoding
Definition
ec_point_format.h:27
Botan::EC_Group_Encoding::NamedCurve
@ NamedCurve
Definition
ec_point_format.h:30
Botan::EC_Group_Encoding::ImplicitCA
@ ImplicitCA
Definition
ec_point_format.h:29
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_EXPLICIT
@ EC_DOMPAR_ENC_EXPLICIT
Definition
ec_point_format.h:32
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_OID
@ EC_DOMPAR_ENC_OID
Definition
ec_point_format.h:34
Botan::EC_Group_Encoding::Explicit
@ Explicit
Definition
ec_point_format.h:28
Botan::EC_Group_Encoding::EC_DOMPAR_ENC_IMPLICITCA
@ EC_DOMPAR_ENC_IMPLICITCA
Definition
ec_point_format.h:33
Generated by
1.15.0