Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/security/ec/impl/secoidt.h
38918 views
/*1* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.2* Use is subject to license terms.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public6* License as published by the Free Software Foundation; either7* version 2.1 of the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public License15* along with this library; if not, write to the Free Software Foundation,16* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/* *********************************************************************24*25* The Original Code is the Netscape security libraries.26*27* The Initial Developer of the Original Code is28* Netscape Communications Corporation.29* Portions created by the Initial Developer are Copyright (C) 1994-200030* the Initial Developer. All Rights Reserved.31*32* Contributor(s):33* Dr Vipul Gupta <[email protected]>, Sun Microsystems Laboratories34*35*********************************************************************** */3637#ifndef _SECOIDT_H_38#define _SECOIDT_H_3940/*41* secoidt.h - public data structures for ASN.1 OID functions42*43* $Id: secoidt.h,v 1.23 2007/05/05 22:45:16 nelson%bolyard.com Exp $44*/4546typedef struct SECOidDataStr SECOidData;47typedef struct SECAlgorithmIDStr SECAlgorithmID;4849/*50** An X.500 algorithm identifier51*/52struct SECAlgorithmIDStr {53SECItem algorithm;54SECItem parameters;55};5657#define SEC_OID_SECG_EC_SECP192R1 SEC_OID_ANSIX962_EC_PRIME192V158#define SEC_OID_SECG_EC_SECP256R1 SEC_OID_ANSIX962_EC_PRIME256V159#define SEC_OID_PKCS12_KEY_USAGE SEC_OID_X509_KEY_USAGE6061/* fake OID for DSS sign/verify */62#define SEC_OID_SHA SEC_OID_MISS_DSS6364typedef enum {65INVALID_CERT_EXTENSION = 0,66UNSUPPORTED_CERT_EXTENSION = 1,67SUPPORTED_CERT_EXTENSION = 268} SECSupportExtenTag;6970struct SECOidDataStr {71SECItem oid;72ECCurveName offset;73const char * desc;74unsigned long mechanism;75SECSupportExtenTag supportedExtension;76/* only used for x.509 v3 extensions, so77that we can print the names of those78extensions that we don't even support */79};8081#endif /* _SECOIDT_H_ */828384