Refactor the provider side DER constants and writers
[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/RSA.asn1',
17                                      { dir => $config{sourcedir},
18                                        filter => \&oids_to_c::filter_to_H });
19 -}
20
21 /* PSS parameters */
22 int DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
23                             const RSA_PSS_PARAMS_30 *pss);
24 /* Subject Public Key Info */
25 int DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa);
26 /* Signature */
27 int DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag,
28                                                   RSA *rsa, int mdnid);