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