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