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_dsa.h
107000 views
1
/*
2
* WARNING: do not edit!
3
* Generated by Makefile from providers/common/include/prov/der_dsa.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
15
/* Well known OIDs precompiled */
16
/* clang-format off */
17
18
/*
19
* id-dsa OBJECT IDENTIFIER ::= {
20
* iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 }
21
*/
22
#define DER_OID_V_id_dsa DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01
23
#define DER_OID_SZ_id_dsa 9
24
extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];
25
26
/*
27
* id-dsa-with-sha1 OBJECT IDENTIFIER ::= {
28
* iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 }
29
*/
30
#define DER_OID_V_id_dsa_with_sha1 DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03
31
#define DER_OID_SZ_id_dsa_with_sha1 9
32
extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];
33
34
/*
35
* id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }
36
*/
37
#define DER_OID_V_id_dsa_with_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x01
38
#define DER_OID_SZ_id_dsa_with_sha224 11
39
extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];
40
41
/*
42
* id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }
43
*/
44
#define DER_OID_V_id_dsa_with_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x02
45
#define DER_OID_SZ_id_dsa_with_sha256 11
46
extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];
47
48
/*
49
* id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }
50
*/
51
#define DER_OID_V_id_dsa_with_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x03
52
#define DER_OID_SZ_id_dsa_with_sha384 11
53
extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];
54
55
/*
56
* id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }
57
*/
58
#define DER_OID_V_id_dsa_with_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x04
59
#define DER_OID_SZ_id_dsa_with_sha512 11
60
extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];
61
62
/*
63
* id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }
64
*/
65
#define DER_OID_V_id_dsa_with_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x05
66
#define DER_OID_SZ_id_dsa_with_sha3_224 11
67
extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];
68
69
/*
70
* id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }
71
*/
72
#define DER_OID_V_id_dsa_with_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x06
73
#define DER_OID_SZ_id_dsa_with_sha3_256 11
74
extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];
75
76
/*
77
* id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }
78
*/
79
#define DER_OID_V_id_dsa_with_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x07
80
#define DER_OID_SZ_id_dsa_with_sha3_384 11
81
extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];
82
83
/*
84
* id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }
85
*/
86
#define DER_OID_V_id_dsa_with_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x08
87
#define DER_OID_SZ_id_dsa_with_sha3_512 11
88
extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];
89
90
/* clang-format on */
91
92
/* Subject Public Key Info */
93
int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
94
/* Signature */
95
int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,
96
DSA *dsa, int mdnid);
97
98