xref: /freebsd-src/crypto/openssl/providers/common/der/der_rsa_gen.c (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * WARNING: do not edit!
3*b077aed3SPierre Pronchery  * Generated by Makefile from providers/common/der/der_rsa_gen.c.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 "prov/der_rsa.h"
14*b077aed3SPierre Pronchery 
15*b077aed3SPierre Pronchery /* Well known OIDs precompiled */
16*b077aed3SPierre Pronchery 
17*b077aed3SPierre Pronchery /*
18*b077aed3SPierre Pronchery  * hashAlgs OBJECT IDENTIFIER ::= { nistAlgorithms 2 }
19*b077aed3SPierre Pronchery  */
20*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_hashAlgs[DER_OID_SZ_hashAlgs] = {
21*b077aed3SPierre Pronchery     DER_OID_V_hashAlgs
22*b077aed3SPierre Pronchery };
23*b077aed3SPierre Pronchery 
24*b077aed3SPierre Pronchery /*
25*b077aed3SPierre Pronchery  * rsaEncryption    OBJECT IDENTIFIER ::= { pkcs-1 1 }
26*b077aed3SPierre Pronchery  */
27*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_rsaEncryption[DER_OID_SZ_rsaEncryption] = {
28*b077aed3SPierre Pronchery     DER_OID_V_rsaEncryption
29*b077aed3SPierre Pronchery };
30*b077aed3SPierre Pronchery 
31*b077aed3SPierre Pronchery /*
32*b077aed3SPierre Pronchery  * id-RSAES-OAEP    OBJECT IDENTIFIER ::= { pkcs-1 7 }
33*b077aed3SPierre Pronchery  */
34*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_RSAES_OAEP[DER_OID_SZ_id_RSAES_OAEP] = {
35*b077aed3SPierre Pronchery     DER_OID_V_id_RSAES_OAEP
36*b077aed3SPierre Pronchery };
37*b077aed3SPierre Pronchery 
38*b077aed3SPierre Pronchery /*
39*b077aed3SPierre Pronchery  * id-pSpecified    OBJECT IDENTIFIER ::= { pkcs-1 9 }
40*b077aed3SPierre Pronchery  */
41*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_pSpecified[DER_OID_SZ_id_pSpecified] = {
42*b077aed3SPierre Pronchery     DER_OID_V_id_pSpecified
43*b077aed3SPierre Pronchery };
44*b077aed3SPierre Pronchery 
45*b077aed3SPierre Pronchery /*
46*b077aed3SPierre Pronchery  * id-RSASSA-PSS    OBJECT IDENTIFIER ::= { pkcs-1 10 }
47*b077aed3SPierre Pronchery  */
48*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_RSASSA_PSS[DER_OID_SZ_id_RSASSA_PSS] = {
49*b077aed3SPierre Pronchery     DER_OID_V_id_RSASSA_PSS
50*b077aed3SPierre Pronchery };
51*b077aed3SPierre Pronchery 
52*b077aed3SPierre Pronchery /*
53*b077aed3SPierre Pronchery  * md2WithRSAEncryption         OBJECT IDENTIFIER ::= { pkcs-1 2 }
54*b077aed3SPierre Pronchery  */
55*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_md2WithRSAEncryption[DER_OID_SZ_md2WithRSAEncryption] = {
56*b077aed3SPierre Pronchery     DER_OID_V_md2WithRSAEncryption
57*b077aed3SPierre Pronchery };
58*b077aed3SPierre Pronchery 
59*b077aed3SPierre Pronchery /*
60*b077aed3SPierre Pronchery  * md5WithRSAEncryption         OBJECT IDENTIFIER ::= { pkcs-1 4 }
61*b077aed3SPierre Pronchery  */
62*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_md5WithRSAEncryption[DER_OID_SZ_md5WithRSAEncryption] = {
63*b077aed3SPierre Pronchery     DER_OID_V_md5WithRSAEncryption
64*b077aed3SPierre Pronchery };
65*b077aed3SPierre Pronchery 
66*b077aed3SPierre Pronchery /*
67*b077aed3SPierre Pronchery  * sha1WithRSAEncryption        OBJECT IDENTIFIER ::= { pkcs-1 5 }
68*b077aed3SPierre Pronchery  */
69*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha1WithRSAEncryption[DER_OID_SZ_sha1WithRSAEncryption] = {
70*b077aed3SPierre Pronchery     DER_OID_V_sha1WithRSAEncryption
71*b077aed3SPierre Pronchery };
72*b077aed3SPierre Pronchery 
73*b077aed3SPierre Pronchery /*
74*b077aed3SPierre Pronchery  * sha224WithRSAEncryption      OBJECT IDENTIFIER ::= { pkcs-1 14 }
75*b077aed3SPierre Pronchery  */
76*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha224WithRSAEncryption[DER_OID_SZ_sha224WithRSAEncryption] = {
77*b077aed3SPierre Pronchery     DER_OID_V_sha224WithRSAEncryption
78*b077aed3SPierre Pronchery };
79*b077aed3SPierre Pronchery 
80*b077aed3SPierre Pronchery /*
81*b077aed3SPierre Pronchery  * sha256WithRSAEncryption      OBJECT IDENTIFIER ::= { pkcs-1 11 }
82*b077aed3SPierre Pronchery  */
83*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha256WithRSAEncryption[DER_OID_SZ_sha256WithRSAEncryption] = {
84*b077aed3SPierre Pronchery     DER_OID_V_sha256WithRSAEncryption
85*b077aed3SPierre Pronchery };
86*b077aed3SPierre Pronchery 
87*b077aed3SPierre Pronchery /*
88*b077aed3SPierre Pronchery  * sha384WithRSAEncryption      OBJECT IDENTIFIER ::= { pkcs-1 12 }
89*b077aed3SPierre Pronchery  */
90*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha384WithRSAEncryption[DER_OID_SZ_sha384WithRSAEncryption] = {
91*b077aed3SPierre Pronchery     DER_OID_V_sha384WithRSAEncryption
92*b077aed3SPierre Pronchery };
93*b077aed3SPierre Pronchery 
94*b077aed3SPierre Pronchery /*
95*b077aed3SPierre Pronchery  * sha512WithRSAEncryption      OBJECT IDENTIFIER ::= { pkcs-1 13 }
96*b077aed3SPierre Pronchery  */
97*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha512WithRSAEncryption[DER_OID_SZ_sha512WithRSAEncryption] = {
98*b077aed3SPierre Pronchery     DER_OID_V_sha512WithRSAEncryption
99*b077aed3SPierre Pronchery };
100*b077aed3SPierre Pronchery 
101*b077aed3SPierre Pronchery /*
102*b077aed3SPierre Pronchery  * sha512-224WithRSAEncryption  OBJECT IDENTIFIER ::= { pkcs-1 15 }
103*b077aed3SPierre Pronchery  */
104*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha512_224WithRSAEncryption[DER_OID_SZ_sha512_224WithRSAEncryption] = {
105*b077aed3SPierre Pronchery     DER_OID_V_sha512_224WithRSAEncryption
106*b077aed3SPierre Pronchery };
107*b077aed3SPierre Pronchery 
108*b077aed3SPierre Pronchery /*
109*b077aed3SPierre Pronchery  * sha512-256WithRSAEncryption  OBJECT IDENTIFIER ::= { pkcs-1 16 }
110*b077aed3SPierre Pronchery  */
111*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_sha512_256WithRSAEncryption[DER_OID_SZ_sha512_256WithRSAEncryption] = {
112*b077aed3SPierre Pronchery     DER_OID_V_sha512_256WithRSAEncryption
113*b077aed3SPierre Pronchery };
114*b077aed3SPierre Pronchery 
115*b077aed3SPierre Pronchery /*
116*b077aed3SPierre Pronchery  * id-mgf1    OBJECT IDENTIFIER ::= { pkcs-1 8 }
117*b077aed3SPierre Pronchery  */
118*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_mgf1[DER_OID_SZ_id_mgf1] = {
119*b077aed3SPierre Pronchery     DER_OID_V_id_mgf1
120*b077aed3SPierre Pronchery };
121*b077aed3SPierre Pronchery 
122*b077aed3SPierre Pronchery /*
123*b077aed3SPierre Pronchery  * id-rsassa-pkcs1-v1_5-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 13 }
124*b077aed3SPierre Pronchery  */
125*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_rsassa_pkcs1_v1_5_with_sha3_224[DER_OID_SZ_id_rsassa_pkcs1_v1_5_with_sha3_224] = {
126*b077aed3SPierre Pronchery     DER_OID_V_id_rsassa_pkcs1_v1_5_with_sha3_224
127*b077aed3SPierre Pronchery };
128*b077aed3SPierre Pronchery 
129*b077aed3SPierre Pronchery /*
130*b077aed3SPierre Pronchery  * id-rsassa-pkcs1-v1_5-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 14 }
131*b077aed3SPierre Pronchery  */
132*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_rsassa_pkcs1_v1_5_with_sha3_256[DER_OID_SZ_id_rsassa_pkcs1_v1_5_with_sha3_256] = {
133*b077aed3SPierre Pronchery     DER_OID_V_id_rsassa_pkcs1_v1_5_with_sha3_256
134*b077aed3SPierre Pronchery };
135*b077aed3SPierre Pronchery 
136*b077aed3SPierre Pronchery /*
137*b077aed3SPierre Pronchery  * id-rsassa-pkcs1-v1_5-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 15 }
138*b077aed3SPierre Pronchery  */
139*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_rsassa_pkcs1_v1_5_with_sha3_384[DER_OID_SZ_id_rsassa_pkcs1_v1_5_with_sha3_384] = {
140*b077aed3SPierre Pronchery     DER_OID_V_id_rsassa_pkcs1_v1_5_with_sha3_384
141*b077aed3SPierre Pronchery };
142*b077aed3SPierre Pronchery 
143*b077aed3SPierre Pronchery /*
144*b077aed3SPierre Pronchery  * id-rsassa-pkcs1-v1_5-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 16 }
145*b077aed3SPierre Pronchery  */
146*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_id_rsassa_pkcs1_v1_5_with_sha3_512[DER_OID_SZ_id_rsassa_pkcs1_v1_5_with_sha3_512] = {
147*b077aed3SPierre Pronchery     DER_OID_V_id_rsassa_pkcs1_v1_5_with_sha3_512
148*b077aed3SPierre Pronchery };
149*b077aed3SPierre Pronchery 
150*b077aed3SPierre Pronchery /*
151*b077aed3SPierre Pronchery  * md4WithRSAEncryption OBJECT IDENTIFIER ::= { pkcs-1 3 }
152*b077aed3SPierre Pronchery  */
153*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_md4WithRSAEncryption[DER_OID_SZ_md4WithRSAEncryption] = {
154*b077aed3SPierre Pronchery     DER_OID_V_md4WithRSAEncryption
155*b077aed3SPierre Pronchery };
156*b077aed3SPierre Pronchery 
157*b077aed3SPierre Pronchery /*
158*b077aed3SPierre Pronchery  * ripemd160WithRSAEncryption    OBJECT IDENTIFIER ::= {
159*b077aed3SPierre Pronchery  *     iso(1) identified-organization(3) teletrust(36) algorithm(3) signatureAlgorithm(3) rsaSignature(1) 2
160*b077aed3SPierre Pronchery  * }
161*b077aed3SPierre Pronchery  */
162*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_ripemd160WithRSAEncryption[DER_OID_SZ_ripemd160WithRSAEncryption] = {
163*b077aed3SPierre Pronchery     DER_OID_V_ripemd160WithRSAEncryption
164*b077aed3SPierre Pronchery };
165*b077aed3SPierre Pronchery 
166*b077aed3SPierre Pronchery /*
167*b077aed3SPierre Pronchery  * mdc2WithRSASignature OBJECT IDENTIFIER ::= {
168*b077aed3SPierre Pronchery  *     iso(1) identified-organization(3) oiw(14) secsig(3) algorithms(2) mdc2WithRSASignature(14)
169*b077aed3SPierre Pronchery  * }
170*b077aed3SPierre Pronchery  */
171*b077aed3SPierre Pronchery const unsigned char ossl_der_oid_mdc2WithRSASignature[DER_OID_SZ_mdc2WithRSASignature] = {
172*b077aed3SPierre Pronchery     DER_OID_V_mdc2WithRSASignature
173*b077aed3SPierre Pronchery };
174*b077aed3SPierre Pronchery 
175