xref: /freebsd/crypto/openssl/providers/common/include/prov/der_sm2.h.in (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1/*
2 * {- join("\n * ", @autowarntext) -}
3 *
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 use
7 * this file except in compliance with the License.  You can obtain a copy
8 * in the file LICENSE in the source distribution or at
9 * https://www.openssl.org/source/license.html
10 */
11
12#include "crypto/ec.h"
13#include "internal/der.h"
14
15/* Well known OIDs precompiled */
16{-
17    $OUT = oids_to_c::process_leaves('providers/common/der/SM2.asn1',
18                                     { dir => $config{sourcedir},
19                                       filter => \&oids_to_c::filter_to_H });
20-}
21
22/* Subject Public Key Info */
23int ossl_DER_w_algorithmIdentifier_SM2(WPACKET *pkt, int cont, EC_KEY *ec);
24/* Signature */
25int ossl_DER_w_algorithmIdentifier_SM2_with_MD(WPACKET *pkt, int cont,
26                                               EC_KEY *ec, int mdnid);
27