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