1*5697Smcpowers /* 2*5697Smcpowers * ***** BEGIN LICENSE BLOCK ***** 3*5697Smcpowers * Version: MPL 1.1/GPL 2.0/LGPL 2.1 4*5697Smcpowers * 5*5697Smcpowers * The contents of this file are subject to the Mozilla Public License Version 6*5697Smcpowers * 1.1 (the "License"); you may not use this file except in compliance with 7*5697Smcpowers * the License. You may obtain a copy of the License at 8*5697Smcpowers * http://www.mozilla.org/MPL/ 9*5697Smcpowers * 10*5697Smcpowers * Software distributed under the License is distributed on an "AS IS" basis, 11*5697Smcpowers * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 12*5697Smcpowers * for the specific language governing rights and limitations under the 13*5697Smcpowers * License. 14*5697Smcpowers * 15*5697Smcpowers * The Original Code is the Elliptic Curve Cryptography library. 16*5697Smcpowers * 17*5697Smcpowers * The Initial Developer of the Original Code is 18*5697Smcpowers * Sun Microsystems, Inc. 19*5697Smcpowers * Portions created by the Initial Developer are Copyright (C) 2003 20*5697Smcpowers * the Initial Developer. All Rights Reserved. 21*5697Smcpowers * 22*5697Smcpowers * Contributor(s): 23*5697Smcpowers * Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories 24*5697Smcpowers * 25*5697Smcpowers * Alternatively, the contents of this file may be used under the terms of 26*5697Smcpowers * either the GNU General Public License Version 2 or later (the "GPL"), or 27*5697Smcpowers * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 28*5697Smcpowers * in which case the provisions of the GPL or the LGPL are applicable instead 29*5697Smcpowers * of those above. If you wish to allow use of your version of this file only 30*5697Smcpowers * under the terms of either the GPL or the LGPL, and not to allow others to 31*5697Smcpowers * use your version of this file under the terms of the MPL, indicate your 32*5697Smcpowers * decision by deleting the provisions above and replace them with the notice 33*5697Smcpowers * and other provisions required by the GPL or the LGPL. If you do not delete 34*5697Smcpowers * the provisions above, a recipient may use your version of this file under 35*5697Smcpowers * the terms of any one of the MPL, the GPL or the LGPL. 36*5697Smcpowers * 37*5697Smcpowers * ***** END LICENSE BLOCK ***** */ 38*5697Smcpowers /* 39*5697Smcpowers * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 40*5697Smcpowers * Use is subject to license terms. 41*5697Smcpowers * 42*5697Smcpowers * Sun elects to use this software under the MPL license. 43*5697Smcpowers */ 44*5697Smcpowers 45*5697Smcpowers #ifndef __ec_h_ 46*5697Smcpowers #define __ec_h_ 47*5697Smcpowers 48*5697Smcpowers #pragma ident "%Z%%M% %I% %E% SMI" 49*5697Smcpowers 50*5697Smcpowers #define EC_DEBUG 0 51*5697Smcpowers #define EC_POINT_FORM_COMPRESSED_Y0 0x02 52*5697Smcpowers #define EC_POINT_FORM_COMPRESSED_Y1 0x03 53*5697Smcpowers #define EC_POINT_FORM_UNCOMPRESSED 0x04 54*5697Smcpowers #define EC_POINT_FORM_HYBRID_Y0 0x06 55*5697Smcpowers #define EC_POINT_FORM_HYBRID_Y1 0x07 56*5697Smcpowers 57*5697Smcpowers #define ANSI_X962_CURVE_OID_TOTAL_LEN 10 58*5697Smcpowers #define SECG_CURVE_OID_TOTAL_LEN 7 59*5697Smcpowers 60*5697Smcpowers #endif /* __ec_h_ */ 61