PROV: Refactor the RSA DER support
[openssl.git] / providers / common / der / der_rsa.h.in
1 /*
2  * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
3  *
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
8  */
9
10 #include "crypto/rsa.h"
11 #include "internal/der.h"
12
13 /* Well known OIDs precompiled */
14 {-
15     $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
16                                      'providers/common/der/DIGESTS.asn1',
17                                      'providers/common/der/RSA.asn1',
18                                      { dir => $config{sourcedir},
19                                        filter => \&oids_to_c::filter_to_H });
20 -}
21
22 int DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
23                             const RSA_PSS_PARAMS_30 *pss);
24 int DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa);
25 int DER_w_algorithmIdentifier_RSA_with(WPACKET *pkt, int tag,
26                                        RSA *rsa, int mdnid);