/*
* Use is subject to license terms.
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/* *********************************************************************
*
* The Original Code is the Netscape security libraries.
*
* The Initial Developer of the Original Code is
* Netscape Communications Corporation.
* Portions created by the Initial Developer are Copyright (C) 1994-2000
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories
*
*********************************************************************** */
#ifndef _WIN32
#if !defined(__linux__) && !defined(_ALLBSD_SOURCE)
#endif /* __linux__ || _ALLBSD_SOURCE */
#endif /* _WIN32 */
#ifdef _KERNEL
#else
#include <string.h>
#endif
#include "ec.h"
#include "ecl-curve.h"
#include "ecc_impl.h"
#include "secoidt.h"
#define CONST_OID static const unsigned char
/* ANSI X9.62 prime curve OIDs */
/* NOTE: prime192v1 is the same as secp192r1, prime256v1 is the
* same as secp256r1
*/
/* SECG prime curve OIDs */
/* SECG characterisitic two curve OIDs */
/* ANSI X9.62 characteristic two curve OIDs */
#ifndef SECOID_NO_STRINGS
#else
#endif
/* XXX this is incorrect */
"ANSI X9.62 elliptic curve prime192v1 (aka secp192r1, NIST P-192)",
"ANSI X9.62 elliptic curve prime192v2",
"ANSI X9.62 elliptic curve prime192v3",
"ANSI X9.62 elliptic curve prime239v1",
"ANSI X9.62 elliptic curve prime239v2",
"ANSI X9.62 elliptic curve prime239v3",
"ANSI X9.62 elliptic curve prime256v1 (aka secp256r1, NIST P-256)",
};
"SECG elliptic curve sect163k1 (aka NIST K-163)",
"SECG elliptic curve sect163r1",
"SECG elliptic curve sect239k1",
"SECG elliptic curve sect113r1",
"SECG elliptic curve sect113r2",
"SECG elliptic curve secp112r1",
"SECG elliptic curve secp112r2",
"SECG elliptic curve secp160r1",
"SECG elliptic curve secp160k1",
"SECG elliptic curve secp256k1",
"SECG elliptic curve sect163r2 (aka NIST B-163)",
"SECG elliptic curve sect283k1 (aka NIST K-283)",
"SECG elliptic curve sect283r1 (aka NIST B-283)",
"SECG elliptic curve sect131r1",
"SECG elliptic curve sect131r2",
"SECG elliptic curve sect193r1",
"SECG elliptic curve sect193r2",
"SECG elliptic curve sect233k1 (aka NIST K-233)",
"SECG elliptic curve sect233r1 (aka NIST B-233)",
"SECG elliptic curve secp128r1",
"SECG elliptic curve secp128r2",
"SECG elliptic curve secp160r2",
"SECG elliptic curve secp192k1",
"SECG elliptic curve secp224k1",
"SECG elliptic curve secp224r1 (aka NIST P-224)",
"SECG elliptic curve secp384r1 (aka NIST P-384)",
"SECG elliptic curve secp521r1 (aka NIST P-521)",
"SECG elliptic curve sect409k1 (aka NIST K-409)",
"SECG elliptic curve sect409r1 (aka NIST B-409)",
"SECG elliptic curve sect571k1 (aka NIST K-571)",
"SECG elliptic curve sect571r1 (aka NIST B-571)",
};
/* ANSI X9.62 named elliptic curves (characteristic two field) */
"ANSI X9.62 elliptic curve c2pnb163v1",
"ANSI X9.62 elliptic curve c2pnb163v2",
"ANSI X9.62 elliptic curve c2pnb163v3",
"ANSI X9.62 elliptic curve c2pnb176v1",
"ANSI X9.62 elliptic curve c2tnb191v1",
"ANSI X9.62 elliptic curve c2tnb191v2",
"ANSI X9.62 elliptic curve c2tnb191v3",
"ANSI X9.62 elliptic curve c2pnb208w1",
"ANSI X9.62 elliptic curve c2tnb239v1",
"ANSI X9.62 elliptic curve c2tnb239v2",
"ANSI X9.62 elliptic curve c2tnb239v3",
"ANSI X9.62 elliptic curve c2pnb272w1",
"ANSI X9.62 elliptic curve c2pnb304w1",
"ANSI X9.62 elliptic curve c2tnb359v1",
"ANSI X9.62 elliptic curve c2pnb368w1",
"ANSI X9.62 elliptic curve c2tnb431r1",
};
{
/* XXX bounds check */
}
/* XXX bounds check */
}
/* XXX bounds check */
}
return(ret);
}
{
return ECCurve_noName;
}