将 byte[] 转换为非对称算法的某种实现
我需要将 byte[] 转换为非对称算法的某种实现。我正在尝试签署 xml
,但只能获取字节数组中的私钥。 如果有人需要知道的话,我正在使用相当好的 PKCS11.Net 来访问令牌。
我用来签名的类是这样的:System.Security.Cryptography.Xml.SignedXml
该属性仅要求 AmetryAlgorithm :XmlSignedXml.SigningKey
;
有谁知道该怎么做?
I need to convert a byte[] to some implementation of AsymmetricAlgorithm. I am trying to sign a xml
and I can only get the private key in a byte array.
I am using the quite good PKCS11.Net to access a token, if anyone needs to know.
The class I am using to sign is this: System.Security.Cryptography.Xml.SignedXml
The property only asks for AsymmetricAlgorithm : XmlSignedXml.SigningKey
;
Does anyone knows how to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用像 http://www.bouncycastle.org/ 这样的库来导入它。
Use a library like http://www.bouncycastle.org/ to import this.