1

我有一个执行许多 RSA 签名操作的网络服务。我使用来自 .net 的 CryptograhyProvider。这使用来自 Windows 的非托管 CyptoAPI。

我经常遇到这个错误:

System.Security.Cryptography.CryptographicException: Der RPC-Server ist für diesen Vorgang zu stark ausgelastet。[=rpc 服务器太忙,无法完成事务]

北 System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) 北 System.Security.Cryptography.Utils._ImportKey(SafeProvHandle hCSP, Int32 keyNumber, CspProviderFlags flags, Object cspObject, SafeKeyHandle& hKey) 北 System.Security.Cryptography.RSACryptoServiceProvider.ImportParameters (RSAParameters 参数)

与其尝试解决这个问题,我宁愿用 DLLImport 替换我的 RSA 签名操作,以实现高性能 RSA C 实现。

有人知道或可以推荐一个吗?

OpenSSL 比 MS CryptoApi 快吗?我还怀疑加载密钥可能会导致严重的开销。

谢谢!

4

3 回答 3

3

我会推荐 OpenSSL,但我不知道与 MS CryptoAPI 的比较。它使用简单,文档丰富,示例源代码也很丰富。

在此处查看 API 的详细说明。

于 2010-07-20T10:50:20.317 回答
2

您可能还想考虑NSS是 2 岁,但仍然值得细读。

于 2010-07-20T10:47:33.020 回答
1

http://www.cryptopp.com/ 可能是一个不错的图书馆。

它用于此速度测试: http ://www.cryptopp.com/benchmarks.html

不幸的是,无法与可用的 OpenSSL 进行比较

于 2010-07-20T11:03:41.473 回答