]>
git.ipfire.org Git - thirdparty/openssl.git/blob - providers/common/der/der_dsa.c.in
2 * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
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
10 #include <openssl/bn.h>
11 #include <openssl/obj_mac.h>
12 #include "prov/der_dsa.h"
14 /* Well known OIDs precompiled */
16 $OUT
= oids_to_c::process_leaves('providers/common/der/DSA.asn1',
17 { dir
=> $config
{sourcedir
},
18 filter
=> \
&oids_to_c::filter_to_C
});
21 int DER_w_algorithmIdentifier_DSA(WPACKET
*pkt
, int tag
, DSA
*dsa
)
23 return DER_w_begin_sequence(pkt
, tag
)
24 /* No parameters (yet?) */
25 && DER_w_precompiled(pkt
, -1, der_oid_id_dsa
, sizeof(der_oid_id_dsa
))
26 && DER_w_end_sequence(pkt
, tag
);
29 #define MD_CASE(name) \
31 precompiled = der_oid_id_dsa_with_##name; \
32 precompiled_sz = sizeof(der_oid_id_dsa_with_##name); \
35 int DER_w_algorithmIdentifier_DSA_with(WPACKET
*pkt
, int tag
,
38 const unsigned char *precompiled
= NULL
;
39 size_t precompiled_sz
= 0;
55 return DER_w_begin_sequence(pkt
, tag
)
56 /* No parameters (yet?) */
57 && DER_w_precompiled(pkt
, -1, precompiled
, precompiled_sz
)
58 && DER_w_end_sequence(pkt
, tag
);