我有一个执行许多 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 快吗?我还怀疑加载密钥可能会导致严重的开销。
谢谢!