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