Added TLS specific EC point formats
This commit is contained in:
@@ -315,6 +315,13 @@ ENUM(tls_ansi_point_format_names, TLS_ANSI_COMPRESSED, TLS_ANSI_HYBRID_Y,
|
||||
"hybrid y",
|
||||
);
|
||||
|
||||
ENUM(tls_ec_point_format_names,
|
||||
TLS_EC_POINT_UNCOMPRESSED, TLS_EC_POINT_ANSIX962_COMPRESSED_CHAR2,
|
||||
"uncompressed",
|
||||
"ansiX962 compressed prime",
|
||||
"ansiX962 compressed char2",
|
||||
);
|
||||
|
||||
typedef struct private_tls_crypto_t private_tls_crypto_t;
|
||||
|
||||
/**
|
||||
|
||||
@@ -28,6 +28,8 @@ typedef enum tls_signature_algorithm_t tls_signature_algorithm_t;
|
||||
typedef enum tls_client_certificate_type_t tls_client_certificate_type_t;
|
||||
typedef enum tls_ecc_curve_type_t tls_ecc_curve_type_t;
|
||||
typedef enum tls_named_curve_t tls_named_curve_t;
|
||||
typedef enum tls_ansi_point_format_t tls_ansi_point_format_t;
|
||||
typedef enum tls_ec_point_format_t tls_ec_point_format_t;
|
||||
|
||||
#include "tls.h"
|
||||
#include "tls_prf.h"
|
||||
@@ -374,6 +376,20 @@ enum tls_ansi_point_format_t {
|
||||
*/
|
||||
extern enum_name_t *tls_ansi_point_format_names;
|
||||
|
||||
/**
|
||||
* EC Point format, TLS specific identifiers.
|
||||
*/
|
||||
enum tls_ec_point_format_t {
|
||||
TLS_EC_POINT_UNCOMPRESSED = 0,
|
||||
TLS_EC_POINT_ANSIX962_COMPRESSED_PRIME = 1,
|
||||
TLS_EC_POINT_ANSIX962_COMPRESSED_CHAR2 = 2,
|
||||
};
|
||||
|
||||
/**
|
||||
* Enum names for tls_ec_point_format_t.
|
||||
*/
|
||||
extern enum_name_t *tls_ec_point_format_names;
|
||||
|
||||
/**
|
||||
* TLS crypto helper functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user