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/rsa.h" 13 #include "internal/der.h" 14 15 /* Well known OIDs precompiled */ 16 /* clang-format off */ 17 {- 18 $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1', 19 'providers/common/der/RSA.asn1', 20 { dir => $config{sourcedir}, 21 filter => \&oids_to_c::filter_to_H }); 22 -} 23 /* clang-format on */ 24 25 /* PSS parameters */ 26 int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag, 27 const RSA_PSS_PARAMS_30 *pss); 28 /* Subject Public Key Info */ 29 int ossl_DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa); 30 int ossl_DER_w_algorithmIdentifier_RSA_PSS(WPACKET *pkt, int tag, 31 int rsa_type, 32 const RSA_PSS_PARAMS_30 *pss); 33 /* Signature */ 34 int ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag, 35 int mdnid); 36