1

I am trying to sign some data with given RSA parameters.

I am given Modulus, Exponent, D, DP, DQ, P, Q, and InverseQ. What library or methods would be the easiest and simplest to use to compute this signature. In C#, they have a specific method for signing data once you give parameters. Again, I am looking for simplicity and possibly just a straight up header and cpp file if possible. Thanks.

4

1 回答 1

2

虽然我自己从未使用过它,但Crypto++库应该可以满足您的需求。

他们的 wiki 有一个 RSA 签名示例:http ://www.cryptopp.com/wiki/RSA_Cryptography#RSA_Signature_Scheme_.28PKCS_v1.5.29

对于签名,您当然只需要私钥。

于 2012-08-05T05:52:42.777 回答