Generating RSA Signature in C# Without CRT Parameters Using System.Security.Cryptography or BouncyCastle
I’m working on a C# application (Framework 4.7.2, Visual Studio 2019, upgrading is not an option) that needs to generate a signature for a given sequence of bytes using RSA. My dataset contains only the Modulus, PublicKey, and PrivateExponent for the RSA keys. I understand that the other parameters (usually related to CRT optimizations) are not mandatory for RSA operations. However, I’m facing issues with both System.Security.Cryptography and BouncyCastle libraries when trying to generate a signature without these CRT parameters.
With System.Security.Cryptography, I attempted to use the SignData function, but it seems to require the CRT parameters, which I do not have. Similarly, when trying to use BouncyCastle, I couldn’t make it work without these parameters either.