forked from ANSSI-FR/libecc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
curves.h
33 lines (26 loc) · 1018 Bytes
/
curves.h
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
30
31
32
33
/*
* Copyright (C) 2017 - This file is part of libecc project
*
* Authors:
* Ryad BENADJILA <[email protected]>
* Arnaud EBALARD <[email protected]>
* Jean-Pierre FLORI <[email protected]>
*
* Contributors:
* Nicolas VIVET <[email protected]>
* Karim KHALFALLAH <[email protected]>
*
* This software is licensed under a dual BSD and GPL v2 license.
* See LICENSE file at the root folder of the project.
*/
#ifndef __CURVES_H__
#define __CURVES_H__
#include "ec_params.h"
const ec_str_params *ec_get_curve_params_by_name(const u8 *ec_name,
u8 ec_name_len);
const ec_str_params *ec_get_curve_params_by_type(ec_curve_type ec_type);
ec_curve_type ec_get_curve_type_by_name(const u8 *ec_name, u8 ec_name_len);
int ec_get_curve_name_by_type(const ec_curve_type ec_type, u8 *out, u8 outlen);
int ec_check_curve_type_and_name(const ec_curve_type ec_type,
const u8 *ec_name, u8 ec_name_len);
#endif /* __CURVES_H__ */