jdk/src/jdk.crypto.ec/share/native/libsunec/impl/ec.h
changeset 25859 3317bb8137f4
parent 9774 50a2b28ca54c
equal deleted inserted replaced
25858:836adbf7a2cd 25859:3317bb8137f4
       
     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 <vipul.gupta@sun.com>, 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_ */