Home | History | Annotate | Line # | Download | only in prov
      1  1.1  christos /*
      2  1.1  christos  * WARNING: do not edit!
      3  1.1  christos  * Generated by Makefile from providers/common/include/prov/der_digests.h.in
      4  1.1  christos  *
      5  1.1  christos  * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
      6  1.1  christos  *
      7  1.1  christos  * Licensed under the Apache License 2.0 (the "License").  You may not use
      8  1.1  christos  * this file except in compliance with the License.  You can obtain a copy
      9  1.1  christos  * in the file LICENSE in the source distribution or at
     10  1.1  christos  * https://www.openssl.org/source/license.html
     11  1.1  christos  */
     12  1.1  christos 
     13  1.1  christos #include "internal/der.h"
     14  1.1  christos 
     15  1.1  christos /* Well known OIDs precompiled */
     16  1.1  christos 
     17  1.1  christos /*
     18  1.1  christos  * sigAlgs OBJECT IDENTIFIER ::= { nistAlgorithms 3 }
     19  1.1  christos  */
     20  1.1  christos #define DER_OID_V_sigAlgs DER_P_OBJECT, 8, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03
     21  1.1  christos #define DER_OID_SZ_sigAlgs 10
     22  1.1  christos extern const unsigned char ossl_der_oid_sigAlgs[DER_OID_SZ_sigAlgs];
     23  1.1  christos 
     24  1.1  christos /*
     25  1.1  christos  * id-sha1  OBJECT IDENTIFIER  ::=  { iso(1)
     26  1.1  christos  *                      identified-organization(3) oiw(14)
     27  1.1  christos  *                      secsig(3) algorithms(2) 26 }
     28  1.1  christos  */
     29  1.1  christos #define DER_OID_V_id_sha1 DER_P_OBJECT, 5, 0x2B, 0x0E, 0x03, 0x02, 0x1A
     30  1.1  christos #define DER_OID_SZ_id_sha1 7
     31  1.1  christos extern const unsigned char ossl_der_oid_id_sha1[DER_OID_SZ_id_sha1];
     32  1.1  christos 
     33  1.1  christos /*
     34  1.1  christos  * id-md2  OBJECT IDENTIFIER ::= {
     35  1.1  christos  *   iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 2 }
     36  1.1  christos  */
     37  1.1  christos #define DER_OID_V_id_md2 DER_P_OBJECT, 8, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x02
     38  1.1  christos #define DER_OID_SZ_id_md2 10
     39  1.1  christos extern const unsigned char ossl_der_oid_id_md2[DER_OID_SZ_id_md2];
     40  1.1  christos 
     41  1.1  christos /*
     42  1.1  christos  * id-md5  OBJECT IDENTIFIER ::= {
     43  1.1  christos  *   iso(1) member-body(2) us(840) rsadsi(113549) digestAlgorithm(2) 5 }
     44  1.1  christos  */
     45  1.1  christos #define DER_OID_V_id_md5 DER_P_OBJECT, 8, 0x2A, 0x86, 0x48, 0x86, 0xF7, 0x0D, 0x02, 0x05
     46  1.1  christos #define DER_OID_SZ_id_md5 10
     47  1.1  christos extern const unsigned char ossl_der_oid_id_md5[DER_OID_SZ_id_md5];
     48  1.1  christos 
     49  1.1  christos /*
     50  1.1  christos  * id-sha256 OBJECT IDENTIFIER ::= { hashAlgs 1 }
     51  1.1  christos  */
     52  1.1  christos #define DER_OID_V_id_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01
     53  1.1  christos #define DER_OID_SZ_id_sha256 11
     54  1.1  christos extern const unsigned char ossl_der_oid_id_sha256[DER_OID_SZ_id_sha256];
     55  1.1  christos 
     56  1.1  christos /*
     57  1.1  christos  * id-sha384 OBJECT IDENTIFIER ::= { hashAlgs 2 }
     58  1.1  christos  */
     59  1.1  christos #define DER_OID_V_id_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02
     60  1.1  christos #define DER_OID_SZ_id_sha384 11
     61  1.1  christos extern const unsigned char ossl_der_oid_id_sha384[DER_OID_SZ_id_sha384];
     62  1.1  christos 
     63  1.1  christos /*
     64  1.1  christos  * id-sha512 OBJECT IDENTIFIER ::= { hashAlgs 3 }
     65  1.1  christos  */
     66  1.1  christos #define DER_OID_V_id_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03
     67  1.1  christos #define DER_OID_SZ_id_sha512 11
     68  1.1  christos extern const unsigned char ossl_der_oid_id_sha512[DER_OID_SZ_id_sha512];
     69  1.1  christos 
     70  1.1  christos /*
     71  1.1  christos  * id-sha224 OBJECT IDENTIFIER ::= { hashAlgs 4 }
     72  1.1  christos  */
     73  1.1  christos #define DER_OID_V_id_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04
     74  1.1  christos #define DER_OID_SZ_id_sha224 11
     75  1.1  christos extern const unsigned char ossl_der_oid_id_sha224[DER_OID_SZ_id_sha224];
     76  1.1  christos 
     77  1.1  christos /*
     78  1.1  christos  * id-sha512-224 OBJECT IDENTIFIER ::= { hashAlgs 5 }
     79  1.1  christos  */
     80  1.1  christos #define DER_OID_V_id_sha512_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x05
     81  1.1  christos #define DER_OID_SZ_id_sha512_224 11
     82  1.1  christos extern const unsigned char ossl_der_oid_id_sha512_224[DER_OID_SZ_id_sha512_224];
     83  1.1  christos 
     84  1.1  christos /*
     85  1.1  christos  * id-sha512-256 OBJECT IDENTIFIER ::= { hashAlgs 6 }
     86  1.1  christos  */
     87  1.1  christos #define DER_OID_V_id_sha512_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x06
     88  1.1  christos #define DER_OID_SZ_id_sha512_256 11
     89  1.1  christos extern const unsigned char ossl_der_oid_id_sha512_256[DER_OID_SZ_id_sha512_256];
     90  1.1  christos 
     91  1.1  christos /*
     92  1.1  christos  * id-sha3-224 OBJECT IDENTIFIER ::= { hashAlgs 7 }
     93  1.1  christos  */
     94  1.1  christos #define DER_OID_V_id_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x07
     95  1.1  christos #define DER_OID_SZ_id_sha3_224 11
     96  1.1  christos extern const unsigned char ossl_der_oid_id_sha3_224[DER_OID_SZ_id_sha3_224];
     97  1.1  christos 
     98  1.1  christos /*
     99  1.1  christos  * id-sha3-256 OBJECT IDENTIFIER ::= { hashAlgs 8 }
    100  1.1  christos  */
    101  1.1  christos #define DER_OID_V_id_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x08
    102  1.1  christos #define DER_OID_SZ_id_sha3_256 11
    103  1.1  christos extern const unsigned char ossl_der_oid_id_sha3_256[DER_OID_SZ_id_sha3_256];
    104  1.1  christos 
    105  1.1  christos /*
    106  1.1  christos  * id-sha3-384 OBJECT IDENTIFIER ::= { hashAlgs 9 }
    107  1.1  christos  */
    108  1.1  christos #define DER_OID_V_id_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x09
    109  1.1  christos #define DER_OID_SZ_id_sha3_384 11
    110  1.1  christos extern const unsigned char ossl_der_oid_id_sha3_384[DER_OID_SZ_id_sha3_384];
    111  1.1  christos 
    112  1.1  christos /*
    113  1.1  christos  * id-sha3-512 OBJECT IDENTIFIER ::= { hashAlgs 10 }
    114  1.1  christos  */
    115  1.1  christos #define DER_OID_V_id_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x0A
    116  1.1  christos #define DER_OID_SZ_id_sha3_512 11
    117  1.1  christos extern const unsigned char ossl_der_oid_id_sha3_512[DER_OID_SZ_id_sha3_512];
    118  1.1  christos 
    119  1.1  christos /*
    120  1.1  christos  * id-shake128 OBJECT IDENTIFIER ::= { hashAlgs 11 }
    121  1.1  christos  */
    122  1.1  christos #define DER_OID_V_id_shake128 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x0B
    123  1.1  christos #define DER_OID_SZ_id_shake128 11
    124  1.1  christos extern const unsigned char ossl_der_oid_id_shake128[DER_OID_SZ_id_shake128];
    125  1.1  christos 
    126  1.1  christos /*
    127  1.1  christos  * id-shake256 OBJECT IDENTIFIER ::= { hashAlgs 12 }
    128  1.1  christos  */
    129  1.1  christos #define DER_OID_V_id_shake256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x0C
    130  1.1  christos #define DER_OID_SZ_id_shake256 11
    131  1.1  christos extern const unsigned char ossl_der_oid_id_shake256[DER_OID_SZ_id_shake256];
    132  1.1  christos 
    133  1.1  christos /*
    134  1.1  christos  * id-shake128-len OBJECT IDENTIFIER ::= { hashAlgs 17 }
    135  1.1  christos  */
    136  1.1  christos #define DER_OID_V_id_shake128_len DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x11
    137  1.1  christos #define DER_OID_SZ_id_shake128_len 11
    138  1.1  christos extern const unsigned char ossl_der_oid_id_shake128_len[DER_OID_SZ_id_shake128_len];
    139  1.1  christos 
    140  1.1  christos /*
    141  1.1  christos  * id-shake256-len OBJECT IDENTIFIER ::= { hashAlgs 18 }
    142  1.1  christos  */
    143  1.1  christos #define DER_OID_V_id_shake256_len DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x12
    144  1.1  christos #define DER_OID_SZ_id_shake256_len 11
    145  1.1  christos extern const unsigned char ossl_der_oid_id_shake256_len[DER_OID_SZ_id_shake256_len];
    146  1.1  christos 
    147  1.1  christos /*
    148  1.1  christos  * id-KMACWithSHAKE128 OBJECT IDENTIFIER ::={hashAlgs 19}
    149  1.1  christos  */
    150  1.1  christos #define DER_OID_V_id_KMACWithSHAKE128 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x13
    151  1.1  christos #define DER_OID_SZ_id_KMACWithSHAKE128 11
    152  1.1  christos extern const unsigned char ossl_der_oid_id_KMACWithSHAKE128[DER_OID_SZ_id_KMACWithSHAKE128];
    153  1.1  christos 
    154  1.1  christos /*
    155  1.1  christos  * id-KMACWithSHAKE256 OBJECT IDENTIFIER ::={ hashAlgs 20}
    156  1.1  christos  */
    157  1.1  christos #define DER_OID_V_id_KMACWithSHAKE256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x14
    158  1.1  christos #define DER_OID_SZ_id_KMACWithSHAKE256 11
    159  1.1  christos extern const unsigned char ossl_der_oid_id_KMACWithSHAKE256[DER_OID_SZ_id_KMACWithSHAKE256];
    160  1.1  christos 
    161