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