Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/security/ec/impl/ec.h
38918 views
1
/*
2
* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
3
* Use is subject to license terms.
4
*
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
9
*
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
14
*
15
* You should have received a copy of the GNU Lesser General Public License
16
* along with this library; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
/* *********************************************************************
25
*
26
* The Original Code is the Elliptic Curve Cryptography library.
27
*
28
* The Initial Developer of the Original Code is
29
* Sun Microsystems, Inc.
30
* Portions created by the Initial Developer are Copyright (C) 2003
31
* the Initial Developer. All Rights Reserved.
32
*
33
* Contributor(s):
34
* Dr Vipul Gupta <[email protected]>, Sun Microsystems Laboratories
35
*
36
*********************************************************************** */
37
38
#ifndef __ec_h_
39
#define __ec_h_
40
41
#define EC_DEBUG 0
42
#define EC_POINT_FORM_COMPRESSED_Y0 0x02
43
#define EC_POINT_FORM_COMPRESSED_Y1 0x03
44
#define EC_POINT_FORM_UNCOMPRESSED 0x04
45
#define EC_POINT_FORM_HYBRID_Y0 0x06
46
#define EC_POINT_FORM_HYBRID_Y1 0x07
47
48
#define ANSI_X962_CURVE_OID_TOTAL_LEN 10
49
#define SECG_CURVE_OID_TOTAL_LEN 7
50
51
#endif /* __ec_h_ */
52
53