xref: /freebsd-src/crypto/openssl/providers/common/include/prov/der_dsa.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * WARNING: do not edit!
3*b077aed3SPierre Pronchery  * Generated by Makefile from providers/common/include/prov/der_dsa.h.in
4*b077aed3SPierre Pronchery  *
5*b077aed3SPierre Pronchery  * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
6*b077aed3SPierre Pronchery  *
7*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (the "License").  You may not use
8*b077aed3SPierre Pronchery  * this file except in compliance with the License.  You can obtain a copy
9*b077aed3SPierre Pronchery  * in the file LICENSE in the source distribution or at
10*b077aed3SPierre Pronchery  * https://www.openssl.org/source/license.html
11*b077aed3SPierre Pronchery  */
12*b077aed3SPierre Pronchery 
13*b077aed3SPierre Pronchery #include "internal/der.h"
14*b077aed3SPierre Pronchery 
15*b077aed3SPierre Pronchery /* Well known OIDs precompiled */
16*b077aed3SPierre Pronchery 
17*b077aed3SPierre Pronchery /*
18*b077aed3SPierre Pronchery  * id-dsa OBJECT IDENTIFIER ::= {
19*b077aed3SPierre Pronchery  *      iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 }
20*b077aed3SPierre Pronchery  */
21*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01
22*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa 9
23*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];
24*b077aed3SPierre Pronchery 
25*b077aed3SPierre Pronchery /*
26*b077aed3SPierre Pronchery  * id-dsa-with-sha1 OBJECT IDENTIFIER ::=  {
27*b077aed3SPierre Pronchery  *      iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 }
28*b077aed3SPierre Pronchery  */
29*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha1 DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03
30*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha1 9
31*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];
32*b077aed3SPierre Pronchery 
33*b077aed3SPierre Pronchery /*
34*b077aed3SPierre Pronchery  * id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }
35*b077aed3SPierre Pronchery  */
36*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x01
37*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha224 11
38*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];
39*b077aed3SPierre Pronchery 
40*b077aed3SPierre Pronchery /*
41*b077aed3SPierre Pronchery  * id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }
42*b077aed3SPierre Pronchery  */
43*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x02
44*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha256 11
45*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];
46*b077aed3SPierre Pronchery 
47*b077aed3SPierre Pronchery /*
48*b077aed3SPierre Pronchery  * id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }
49*b077aed3SPierre Pronchery  */
50*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x03
51*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha384 11
52*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];
53*b077aed3SPierre Pronchery 
54*b077aed3SPierre Pronchery /*
55*b077aed3SPierre Pronchery  * id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }
56*b077aed3SPierre Pronchery  */
57*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x04
58*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha512 11
59*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];
60*b077aed3SPierre Pronchery 
61*b077aed3SPierre Pronchery /*
62*b077aed3SPierre Pronchery  * id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }
63*b077aed3SPierre Pronchery  */
64*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x05
65*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha3_224 11
66*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];
67*b077aed3SPierre Pronchery 
68*b077aed3SPierre Pronchery /*
69*b077aed3SPierre Pronchery  * id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }
70*b077aed3SPierre Pronchery  */
71*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x06
72*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha3_256 11
73*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];
74*b077aed3SPierre Pronchery 
75*b077aed3SPierre Pronchery /*
76*b077aed3SPierre Pronchery  * id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }
77*b077aed3SPierre Pronchery  */
78*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x07
79*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha3_384 11
80*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];
81*b077aed3SPierre Pronchery 
82*b077aed3SPierre Pronchery /*
83*b077aed3SPierre Pronchery  * id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }
84*b077aed3SPierre Pronchery  */
85*b077aed3SPierre Pronchery #define DER_OID_V_id_dsa_with_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x08
86*b077aed3SPierre Pronchery #define DER_OID_SZ_id_dsa_with_sha3_512 11
87*b077aed3SPierre Pronchery extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];
88*b077aed3SPierre Pronchery 
89*b077aed3SPierre Pronchery 
90*b077aed3SPierre Pronchery /* Subject Public Key Info */
91*b077aed3SPierre Pronchery int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
92*b077aed3SPierre Pronchery /* Signature */
93*b077aed3SPierre Pronchery int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,
94*b077aed3SPierre Pronchery                                                DSA *dsa, int mdnid);
95