Botan 3.14.1
Crypto and TLS for C&
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
19namespace 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*/
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*/
43enum class EC_Point_Format : uint8_t {
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
#define BOTAN_DEPRECATED(msg)
Definition api.h:73