1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * {- join("\n * ", @autowarntext) -}
3e1051a39Sopenharmony_ci *
4e1051a39Sopenharmony_ci * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
5e1051a39Sopenharmony_ci *
6e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
7e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
8e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
9e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
10e1051a39Sopenharmony_ci */
11e1051a39Sopenharmony_ci
12e1051a39Sopenharmony_ci#include "crypto/rsa.h"
13e1051a39Sopenharmony_ci#include "internal/der.h"
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci/* Well known OIDs precompiled */
16e1051a39Sopenharmony_ci{-
17e1051a39Sopenharmony_ci    $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
18e1051a39Sopenharmony_ci                                     'providers/common/der/RSA.asn1',
19e1051a39Sopenharmony_ci                                     { dir => $config{sourcedir},
20e1051a39Sopenharmony_ci                                       filter => \&oids_to_c::filter_to_H });
21e1051a39Sopenharmony_ci-}
22e1051a39Sopenharmony_ci
23e1051a39Sopenharmony_ci/* PSS parameters */
24e1051a39Sopenharmony_ciint ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
25e1051a39Sopenharmony_ci                                 const RSA_PSS_PARAMS_30 *pss);
26e1051a39Sopenharmony_ci/* Subject Public Key Info */
27e1051a39Sopenharmony_ciint ossl_DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa);
28e1051a39Sopenharmony_ciint ossl_DER_w_algorithmIdentifier_RSA_PSS(WPACKET *pkt, int tag,
29e1051a39Sopenharmony_ci                                           int rsa_type,
30e1051a39Sopenharmony_ci                                           const RSA_PSS_PARAMS_30 *pss);
31e1051a39Sopenharmony_ci/* Signature */
32e1051a39Sopenharmony_ciint ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag,
33e1051a39Sopenharmony_ci                                                       int mdnid);
34