xref: /netbsd-src/crypto/external/bsd/openssl/lib/libdefault/prov/der_ecx.h (revision 782713e6c126f1866c6d9cfdee4ceb49483b5828)
1*782713e6Schristos /*
2*782713e6Schristos  * WARNING: do not edit!
3*782713e6Schristos  * Generated by Makefile from providers/common/include/prov/der_ecx.h.in
4*782713e6Schristos  *
5*782713e6Schristos  * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
6*782713e6Schristos  *
7*782713e6Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
8*782713e6Schristos  * this file except in compliance with the License.  You can obtain a copy
9*782713e6Schristos  * in the file LICENSE in the source distribution or at
10*782713e6Schristos  * https://www.openssl.org/source/license.html
11*782713e6Schristos  */
12*782713e6Schristos 
13*782713e6Schristos #include "internal/der.h"
14*782713e6Schristos #include "crypto/ecx.h"
15*782713e6Schristos 
16*782713e6Schristos /* Well known OIDs precompiled */
17*782713e6Schristos 
18*782713e6Schristos /*
19*782713e6Schristos  * id-X25519        OBJECT IDENTIFIER ::= { id-edwards-curve-algs 110 }
20*782713e6Schristos  */
21*782713e6Schristos #define DER_OID_V_id_X25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6E
22*782713e6Schristos #define DER_OID_SZ_id_X25519 5
23*782713e6Schristos extern const unsigned char ossl_der_oid_id_X25519[DER_OID_SZ_id_X25519];
24*782713e6Schristos 
25*782713e6Schristos /*
26*782713e6Schristos  * id-X448          OBJECT IDENTIFIER ::= { id-edwards-curve-algs 111 }
27*782713e6Schristos  */
28*782713e6Schristos #define DER_OID_V_id_X448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6F
29*782713e6Schristos #define DER_OID_SZ_id_X448 5
30*782713e6Schristos extern const unsigned char ossl_der_oid_id_X448[DER_OID_SZ_id_X448];
31*782713e6Schristos 
32*782713e6Schristos /*
33*782713e6Schristos  * id-Ed25519       OBJECT IDENTIFIER ::= { id-edwards-curve-algs 112 }
34*782713e6Schristos  */
35*782713e6Schristos #define DER_OID_V_id_Ed25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x70
36*782713e6Schristos #define DER_OID_SZ_id_Ed25519 5
37*782713e6Schristos extern const unsigned char ossl_der_oid_id_Ed25519[DER_OID_SZ_id_Ed25519];
38*782713e6Schristos 
39*782713e6Schristos /*
40*782713e6Schristos  * id-Ed448         OBJECT IDENTIFIER ::= { id-edwards-curve-algs 113 }
41*782713e6Schristos  */
42*782713e6Schristos #define DER_OID_V_id_Ed448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x71
43*782713e6Schristos #define DER_OID_SZ_id_Ed448 5
44*782713e6Schristos extern const unsigned char ossl_der_oid_id_Ed448[DER_OID_SZ_id_Ed448];
45*782713e6Schristos 
46*782713e6Schristos 
47*782713e6Schristos int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
48*782713e6Schristos int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
49*782713e6Schristos int ossl_DER_w_algorithmIdentifier_X25519(WPACKET *pkt, int cont, ECX_KEY *ec);
50*782713e6Schristos int ossl_DER_w_algorithmIdentifier_X448(WPACKET *pkt, int cont, ECX_KEY *ec);
51