From dbe9a6825f1e0316806cff93875a830b896e97d6 Mon Sep 17 00:00:00 2001 From: Pauli Date: Tue, 22 Jul 2025 11:33:45 +1000 Subject: [PATCH] asym: rename RSA and SM2 asymmetric cipher files To allow generated param parsing Reviewed-by: Paul Yang Reviewed-by: Shane Lontis Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/28145) --- .gitignore | 2 ++ build.info | 10 +++++++++- .../asymciphers/{rsa_enc.c => rsa_enc.c.in} | 0 .../asymciphers/{sm2_enc.c => sm2_enc.c.in} | 0 4 files changed, 11 insertions(+), 1 deletion(-) rename providers/implementations/asymciphers/{rsa_enc.c => rsa_enc.c.in} (100%) rename providers/implementations/asymciphers/{sm2_enc.c => sm2_enc.c.in} (100%) diff --git a/.gitignore b/.gitignore index 73d95629661..a9d6b80d47d 100644 --- a/.gitignore +++ b/.gitignore @@ -86,6 +86,8 @@ providers/common/include/prov/der_wrap.h providers/common/include/prov/der_sm2.h providers/common/include/prov/der_ml_dsa.h providers/common/include/prov/der_hkdf.h +providers/implementations/asymciphers/rsa_enc.c +providers/implementations/asymciphers/sm2_enc.c providers/implementations/kdfs/argon2.c providers/implementations/kdfs/hkdf.c providers/implementations/kdfs/hmacdrbg_kdf.c diff --git a/build.info b/build.info index db5a8a54716..1890191ff1c 100644 --- a/build.info +++ b/build.info @@ -48,6 +48,8 @@ DEPEND[]=include/openssl/asn1.h \ include/openssl/x509_acert.h \ include/openssl/x509_vfy.h \ include/crypto/bn_conf.h include/crypto/dso_conf.h \ + providers/implementations/asymciphers/rsa_enc.c \ + providers/implementations/asymciphers/sm2_enc.c \ providers/implementations/kdfs/argon2.c \ providers/implementations/kdfs/hkdf.c \ providers/implementations/kdfs/hmacdrbg_kdf.c \ @@ -123,7 +125,9 @@ GENERATE[include/openssl/x509_vfy.h]=include/openssl/x509_vfy.h.in GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in -DEPEND[providers/implementations/kdfs/argon2.c \ +DEPEND[providers/implementations/asymciphers/rsa_enc.c \ + providers/implementations/asymciphers/sm2_enc.c \ + providers/implementations/kdfs/argon2.c \ providers/implementations/kdfs/hkdf.c \ providers/implementations/kdfs/hmacdrbg_kdf.c \ providers/implementations/kdfs/kbkdf.c \ @@ -165,6 +169,10 @@ DEPEND[providers/implementations/kdfs/argon2.c \ providers/implementations/rands/seed_src_jitter.c \ providers/implementations/rands/test_rng.c \ include/openssl/core_names.h]=util/perl|OpenSSL/paramnames.pm +GENERATE[providers/implementations/asymciphers/rsa_enc.c]=\ + providers/implementations/asymciphers/rsa_enc.c.in +GENERATE[providers/implementations/asymciphers/sm2_enc.c]=\ + providers/implementations/asymciphers/sm2_enc.c.in GENERATE[providers/implementations/kdfs/argon2.c]=\ providers/implementations/kdfs/argon2.c.in GENERATE[providers/implementations/kdfs/hkdf.c]=\ diff --git a/providers/implementations/asymciphers/rsa_enc.c b/providers/implementations/asymciphers/rsa_enc.c.in similarity index 100% rename from providers/implementations/asymciphers/rsa_enc.c rename to providers/implementations/asymciphers/rsa_enc.c.in diff --git a/providers/implementations/asymciphers/sm2_enc.c b/providers/implementations/asymciphers/sm2_enc.c.in similarity index 100% rename from providers/implementations/asymciphers/sm2_enc.c rename to providers/implementations/asymciphers/sm2_enc.c.in -- 2.47.3