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?