der_rsa.h.in 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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. #include "crypto/rsa.h"
  12. #include "internal/der.h"
  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. /* PSS parameters */
  21. int ossl_DER_w_RSASSA_PSS_params(WPACKET *pkt, int tag,
  22. const RSA_PSS_PARAMS_30 *pss);
  23. /* Subject Public Key Info */
  24. int ossl_DER_w_algorithmIdentifier_RSA(WPACKET *pkt, int tag, RSA *rsa);
  25. int ossl_DER_w_algorithmIdentifier_RSA_PSS(WPACKET *pkt, int tag,
  26. int rsa_type,
  27. const RSA_PSS_PARAMS_30 *pss);
  28. /* Signature */
  29. int ossl_DER_w_algorithmIdentifier_MDWithRSAEncryption(WPACKET *pkt, int tag,
  30. int mdnid);