什么开源System.Security.Cryptography.Pkcs替代品有哪些?替代品、开源、有哪些、System

2023-09-07 09:23:35 作者:滚,離莪遠點

我想使用PKCS单声道。唯一的问题是,在运行现代艺术博物馆后,扫描报告显示以下内容:

I am trying to use PKCS on mono. The only issue is that after running MoMa, the scan report showed the the following:

Calling Method            Method with [MonoTodo]   
Byte[] Sign (Byte[])      void SignedCms.ComputeSignature (CmsSigner)    
Byte[] Sign (Byte[])      Byte[] SignedCms.Encode ()    
Byte[] Envelope (Byte[])  void EnvelopedCms.Encrypt (CmsRecipient)    
Byte[] Envelope (Byte[])  Byte[] EnvelopedCms.Encode ()

正如你所看到的,所需要的方法,我需要使用,还没有实现在单。有谁知道一个解决方法,这一点,可能是一个补丁,或者没有人知道任何开源库,这样可以让我实现类似的结果作为System.Security.Cryptography.Pkcs.CmsSigner模块。

As you can see, the required methods I need to use, are not yet implemented on Mono. Does anyone know a workaround to this, may be a patch, or does anyone know of any open source libraries which would allow me to achieve similar results as the System.Security.Cryptography.Pkcs.CmsSigner module.

TIA,

安德鲁

推荐答案

BouncyCastle的有一个C#版本,并且在Mono的支持。它还包括CMS生成器和处理器的API。

BouncyCastle has a C# version and is supported on Mono. It also includes API for CMS Generators and Processors.