我想实现一个盲RSA签名在.NET。有没有办法使用标准 System.Security.Cryptography
API来实现这一目标?
I'd like to implement a blind RSA signature in .NET. Is there any way to use the standard System.Security.Cryptography
APIs to achieve this?
而明显的想法不工作:
using (var rsa = new RSACryptoServiceProvider())
signed = rsa.Decrypt(messageBytes, false);
// CryptographicException: bad data
我AP preciate盲签名的危险,但让我们忽略那些一会儿。另外,我不感兴趣的其他类型的数字签名。
I appreciate the dangers of blind signature but let's ignore those for a moment. Also, I'm not interested in other types of digital signatures.
您将拥有你自己的滚动。您可以使用.NET 4的BigInteger类或者仅使用BouncyCastle的C#库。
You are going to have to roll you own. You can use the BigInteger class of .NET 4 or just use the Bouncycastle C# library.