jdk/src/share/native/sun/security/ec/impl/ec.h

Print this page




  33  * Portions created by the Initial Developer are Copyright (C) 2003
  34  * the Initial Developer. All Rights Reserved.
  35  *
  36  * Contributor(s):
  37  *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
  38  *
  39  * Alternatively, the contents of this file may be used under the terms of
  40  * either the GNU General Public License Version 2 or later (the "GPL"), or
  41  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  42  * in which case the provisions of the GPL or the LGPL are applicable instead
  43  * of those above. If you wish to allow use of your version of this file only
  44  * under the terms of either the GPL or the LGPL, and not to allow others to
  45  * use your version of this file under the terms of the MPL, indicate your
  46  * decision by deleting the provisions above and replace them with the notice
  47  * and other provisions required by the GPL or the LGPL. If you do not delete
  48  * the provisions above, a recipient may use your version of this file under
  49  * the terms of any one of the MPL, the GPL or the LGPL.
  50  *
  51  *********************************************************************** */
  52 /*
  53  * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
  54  * Use is subject to license terms.
  55  */
  56 
  57 #ifndef __ec_h_
  58 #define __ec_h_
  59 
  60 #define EC_DEBUG                          0
  61 #define EC_POINT_FORM_COMPRESSED_Y0    0x02
  62 #define EC_POINT_FORM_COMPRESSED_Y1    0x03
  63 #define EC_POINT_FORM_UNCOMPRESSED     0x04
  64 #define EC_POINT_FORM_HYBRID_Y0        0x06
  65 #define EC_POINT_FORM_HYBRID_Y1        0x07
  66 
  67 #define ANSI_X962_CURVE_OID_TOTAL_LEN    10
  68 #define SECG_CURVE_OID_TOTAL_LEN          7
  69 
  70 #endif /* __ec_h_ */


  33  * Portions created by the Initial Developer are Copyright (C) 2003
  34  * the Initial Developer. All Rights Reserved.
  35  *
  36  * Contributor(s):
  37  *   Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
  38  *
  39  * Alternatively, the contents of this file may be used under the terms of
  40  * either the GNU General Public License Version 2 or later (the "GPL"), or
  41  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  42  * in which case the provisions of the GPL or the LGPL are applicable instead
  43  * of those above. If you wish to allow use of your version of this file only
  44  * under the terms of either the GPL or the LGPL, and not to allow others to
  45  * use your version of this file under the terms of the MPL, indicate your
  46  * decision by deleting the provisions above and replace them with the notice
  47  * and other provisions required by the GPL or the LGPL. If you do not delete
  48  * the provisions above, a recipient may use your version of this file under
  49  * the terms of any one of the MPL, the GPL or the LGPL.
  50  *
  51  *********************************************************************** */
  52 /*
  53  * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
  54  * Use is subject to license terms.
  55  */
  56 
  57 #ifndef __ec_h_
  58 #define __ec_h_
  59 
  60 #define EC_DEBUG                          0
  61 #define EC_POINT_FORM_COMPRESSED_Y0    0x02
  62 #define EC_POINT_FORM_COMPRESSED_Y1    0x03
  63 #define EC_POINT_FORM_UNCOMPRESSED     0x04
  64 #define EC_POINT_FORM_HYBRID_Y0        0x06
  65 #define EC_POINT_FORM_HYBRID_Y1        0x07
  66 
  67 #define ANSI_X962_CURVE_OID_TOTAL_LEN    10
  68 #define SECG_CURVE_OID_TOTAL_LEN          7
  69 
  70 #endif /* __ec_h_ */