Path: blob/main/crypto/openssl/providers/common/include/prov/der_dsa.h
107000 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 */15/* clang-format off */1617/*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, 0x0122#define DER_OID_SZ_id_dsa 923extern const unsigned char ossl_der_oid_id_dsa[DER_OID_SZ_id_dsa];2425/*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, 0x0330#define DER_OID_SZ_id_dsa_with_sha1 931extern const unsigned char ossl_der_oid_id_dsa_with_sha1[DER_OID_SZ_id_dsa_with_sha1];3233/*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, 0x0137#define DER_OID_SZ_id_dsa_with_sha224 1138extern const unsigned char ossl_der_oid_id_dsa_with_sha224[DER_OID_SZ_id_dsa_with_sha224];3940/*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, 0x0244#define DER_OID_SZ_id_dsa_with_sha256 1145extern const unsigned char ossl_der_oid_id_dsa_with_sha256[DER_OID_SZ_id_dsa_with_sha256];4647/*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, 0x0351#define DER_OID_SZ_id_dsa_with_sha384 1152extern const unsigned char ossl_der_oid_id_dsa_with_sha384[DER_OID_SZ_id_dsa_with_sha384];5354/*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, 0x0458#define DER_OID_SZ_id_dsa_with_sha512 1159extern const unsigned char ossl_der_oid_id_dsa_with_sha512[DER_OID_SZ_id_dsa_with_sha512];6061/*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, 0x0565#define DER_OID_SZ_id_dsa_with_sha3_224 1166extern const unsigned char ossl_der_oid_id_dsa_with_sha3_224[DER_OID_SZ_id_dsa_with_sha3_224];6768/*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, 0x0672#define DER_OID_SZ_id_dsa_with_sha3_256 1173extern const unsigned char ossl_der_oid_id_dsa_with_sha3_256[DER_OID_SZ_id_dsa_with_sha3_256];7475/*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, 0x0779#define DER_OID_SZ_id_dsa_with_sha3_384 1180extern const unsigned char ossl_der_oid_id_dsa_with_sha3_384[DER_OID_SZ_id_dsa_with_sha3_384];8182/*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, 0x0886#define DER_OID_SZ_id_dsa_with_sha3_512 1187extern const unsigned char ossl_der_oid_id_dsa_with_sha3_512[DER_OID_SZ_id_dsa_with_sha3_512];8889/* clang-format on */9091/* Subject Public Key Info */92int ossl_DER_w_algorithmIdentifier_DSA(WPACKET *pkt, int tag, DSA *dsa);93/* Signature */94int ossl_DER_w_algorithmIdentifier_DSA_with_MD(WPACKET *pkt, int tag,95DSA *dsa, int mdnid);969798