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