Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/openssl/providers/common/include/prov/der_ecx.h
107436 views
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
/* clang-format off */
18
19
/*
20
* id-X25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 110 }
21
*/
22
#define DER_OID_V_id_X25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6E
23
#define DER_OID_SZ_id_X25519 5
24
extern const unsigned char ossl_der_oid_id_X25519[DER_OID_SZ_id_X25519];
25
26
/*
27
* id-X448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 111 }
28
*/
29
#define DER_OID_V_id_X448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x6F
30
#define DER_OID_SZ_id_X448 5
31
extern const unsigned char ossl_der_oid_id_X448[DER_OID_SZ_id_X448];
32
33
/*
34
* id-Ed25519 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 112 }
35
*/
36
#define DER_OID_V_id_Ed25519 DER_P_OBJECT, 3, 0x2B, 0x65, 0x70
37
#define DER_OID_SZ_id_Ed25519 5
38
extern const unsigned char ossl_der_oid_id_Ed25519[DER_OID_SZ_id_Ed25519];
39
40
/*
41
* id-Ed448 OBJECT IDENTIFIER ::= { id-edwards-curve-algs 113 }
42
*/
43
#define DER_OID_V_id_Ed448 DER_P_OBJECT, 3, 0x2B, 0x65, 0x71
44
#define DER_OID_SZ_id_Ed448 5
45
extern const unsigned char ossl_der_oid_id_Ed448[DER_OID_SZ_id_Ed448];
46
47
/* clang-format on */
48
49
int ossl_DER_w_algorithmIdentifier_ED25519(WPACKET *pkt, int cont, ECX_KEY *ec);
50
int ossl_DER_w_algorithmIdentifier_ED448(WPACKET *pkt, int cont, ECX_KEY *ec);
51
int ossl_DER_w_algorithmIdentifier_X25519(WPACKET *pkt, int cont, ECX_KEY *ec);
52
int ossl_DER_w_algorithmIdentifier_X448(WPACKET *pkt, int cont, ECX_KEY *ec);
53
54