Path: blob/main/crypto/openssl/providers/common/include/prov/der_dsa.h
48534 views
/*1* WARNING: do not edit!2* Generated by Makefile from providers/common/include/prov/der_dsa.h.in3*4* Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.5*6* Licensed under the Apache License 2.0 (the "License"). You may not use7* this file except in compliance with the License. You can obtain a copy8* in the file LICENSE in the source distribution or at9* https://www.openssl.org/source/license.html10*/1112#include "internal/der.h"1314/* Well known OIDs precompiled */1516/*17* id-dsa OBJECT IDENTIFIER ::= {18* iso(1) member-body(2) us(840) x9-57(10040) x9algorithm(4) 1 }19*/20#define DER_OID_V_id_dsa DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x0121#define DER_OID_SZ_id_dsa 922extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];2324/*25* id-dsa-with-sha1 OBJECT IDENTIFIER ::= {26* iso(1) member-body(2) us(840) x9-57 (10040) x9algorithm(4) 3 }27*/28#define DER_OID_V_id_dsa_with_sha1 DER_P_OBJECT, 7, 0x2A, 0x86, 0x48, 0xCE, 0x38, 0x04, 0x0329#define DER_OID_SZ_id_dsa_with_sha1 930extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];3132/*33* id-dsa-with-sha224 OBJECT IDENTIFIER ::= { sigAlgs 1 }34*/35#define DER_OID_V_id_dsa_with_sha224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0136#define DER_OID_SZ_id_dsa_with_sha224 1137extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];3839/*40* id-dsa-with-sha256 OBJECT IDENTIFIER ::= { sigAlgs 2 }41*/42#define DER_OID_V_id_dsa_with_sha256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0243#define DER_OID_SZ_id_dsa_with_sha256 1144extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];4546/*47* id-dsa-with-sha384 OBJECT IDENTIFIER ::= { sigAlgs 3 }48*/49#define DER_OID_V_id_dsa_with_sha384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0350#define DER_OID_SZ_id_dsa_with_sha384 1151extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];5253/*54* id-dsa-with-sha512 OBJECT IDENTIFIER ::= { sigAlgs 4 }55*/56#define DER_OID_V_id_dsa_with_sha512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0457#define DER_OID_SZ_id_dsa_with_sha512 1158extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];5960/*61* id-dsa-with-sha3-224 OBJECT IDENTIFIER ::= { sigAlgs 5 }62*/63#define DER_OID_V_id_dsa_with_sha3_224 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0564#define DER_OID_SZ_id_dsa_with_sha3_224 1165extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];6667/*68* id-dsa-with-sha3-256 OBJECT IDENTIFIER ::= { sigAlgs 6 }69*/70#define DER_OID_V_id_dsa_with_sha3_256 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0671#define DER_OID_SZ_id_dsa_with_sha3_256 1172extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];7374/*75* id-dsa-with-sha3-384 OBJECT IDENTIFIER ::= { sigAlgs 7 }76*/77#define DER_OID_V_id_dsa_with_sha3_384 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0778#define DER_OID_SZ_id_dsa_with_sha3_384 1179extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];8081/*82* id-dsa-with-sha3-512 OBJECT IDENTIFIER ::= { sigAlgs 8 }83*/84#define DER_OID_V_id_dsa_with_sha3_512 DER_P_OBJECT, 9, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x03, 0x0885#define DER_OID_SZ_id_dsa_with_sha3_512 1186extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];878889/* Subject Public Key Info */90int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);91/* Signature */92int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,93DSA *dsa, int mdnid);949596