Hello
In short my issue:
I need to xmldsig my xml data to fulfill some regulations. As NAV 2016 offers .NET System Security 4.0 which has System.Security.Cryptography.Xml.SignedXml
Now I need to set the algorithm, but as of 4.0 it only offers those SignatureMethods:
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.signedinfo.signaturemethod?view=dotnet-plat-ext-8.0#system-security-cryptography-xml-signedinfo-signaturemethod
But I need RSA-SHA256 or maybe even SHA256-RSA with MGF-1
For those Methods I'd need atleast .NET 4.6.2 i. e.
https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.xml.signedxml.xmldsigrsasha256url?view=dotnet-plat-ext-8.0#system-security-cryptography-xml-signedxml-xmldsigrsasha256url
It seems like for Bouncy Castle there is only a Java Solution to do this and nothing for C#/.NET that I can transform into NAV
Does anyone has an idea how to get my xmldsig with NAV 2016 using SHA256? Afaik there is no way to use higher .NET framework, am I correct?
The only way I can imagine is creating an own C# assembly in 4.0 and using a wrapping interface to use the 4.6.2 System.Security