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_dsa.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  * id-dsa OBJECT IDENTIFIER ::= {
     19  1.1  christos  *      iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 }
     20  1.1  christos  */
     21  1.1  christos #define DER_OID_V_id_dsa DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x01
     22  1.1  christos #define DER_OID_SZ_id_dsa 9
     23  1.1  christos extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];
     24  1.1  christos 
     25  1.1  christos /*
     26  1.1  christos  * id-dsa-with-sha1 OBJECT IDENTIFIER ::=  {
     27  1.1  christos  *      iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 }
     28  1.1  christos  */
     29  1.1  christos #define DER_OID_V_id_dsa_with_sha1 DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x03
     30  1.1  christos #define DER_OID_SZ_id_dsa_with_sha1 9
     31  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];
     32  1.1  christos 
     33  1.1  christos /*
     34  1.1  christos  * id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }
     35  1.1  christos  */
     36  1.1  christos #define DER_OID_V_id_dsa_with_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x01
     37  1.1  christos #define DER_OID_SZ_id_dsa_with_sha224 11
     38  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];
     39  1.1  christos 
     40  1.1  christos /*
     41  1.1  christos  * id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }
     42  1.1  christos  */
     43  1.1  christos #define DER_OID_V_id_dsa_with_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x02
     44  1.1  christos #define DER_OID_SZ_id_dsa_with_sha256 11
     45  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];
     46  1.1  christos 
     47  1.1  christos /*
     48  1.1  christos  * id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }
     49  1.1  christos  */
     50  1.1  christos #define DER_OID_V_id_dsa_with_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x03
     51  1.1  christos #define DER_OID_SZ_id_dsa_with_sha384 11
     52  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];
     53  1.1  christos 
     54  1.1  christos /*
     55  1.1  christos  * id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }
     56  1.1  christos  */
     57  1.1  christos #define DER_OID_V_id_dsa_with_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x04
     58  1.1  christos #define DER_OID_SZ_id_dsa_with_sha512 11
     59  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];
     60  1.1  christos 
     61  1.1  christos /*
     62  1.1  christos  * id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }
     63  1.1  christos  */
     64  1.1  christos #define DER_OID_V_id_dsa_with_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x05
     65  1.1  christos #define DER_OID_SZ_id_dsa_with_sha3_224 11
     66  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];
     67  1.1  christos 
     68  1.1  christos /*
     69  1.1  christos  * id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }
     70  1.1  christos  */
     71  1.1  christos #define DER_OID_V_id_dsa_with_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x06
     72  1.1  christos #define DER_OID_SZ_id_dsa_with_sha3_256 11
     73  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];
     74  1.1  christos 
     75  1.1  christos /*
     76  1.1  christos  * id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }
     77  1.1  christos  */
     78  1.1  christos #define DER_OID_V_id_dsa_with_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x07
     79  1.1  christos #define DER_OID_SZ_id_dsa_with_sha3_384 11
     80  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];
     81  1.1  christos 
     82  1.1  christos /*
     83  1.1  christos  * id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }
     84  1.1  christos  */
     85  1.1  christos #define DER_OID_V_id_dsa_with_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x08
     86  1.1  christos #define DER_OID_SZ_id_dsa_with_sha3_512 11
     87  1.1  christos extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];
     88  1.1  christos 
     89  1.1  christos 
     90  1.1  christos /* Subject Public Key Info */
     91  1.1  christos int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);
     92  1.1  christos /* Signature */
     93  1.1  christos int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,
     94  1.1  christos                                                DSA *dsa, int mdnid);
     95