I am trying to digitally sign a file (Irrespective of extension) and it's NOT Xml file. So, SignedXml file of C# is not useful. I am able to generate signature by making use of the SHA256 and RSACryptoServiceProvider.SignHash. Now the issues where and how to store the generated digital-signature. Is there any standard or any API in .Net to store the digital signatures?
Update: Want to sign the data and share with the customer so that they can verify with any standardized tool. We are signing and someone else will be verifying. The file which we are sharing does not support signature like how XML or PDF supports. That is the problem. Yup, we have byte array after signature. So if customer wants to verify the signature, where is the information relating to the HASH algorithm and public certificate information that need to be verified with? For sharing the HASH, Public Certificate, Signature... am searching whether there is any standard mechanism
XML Signature Standard but I don't know whether there is any C# or .Net Core API which could do it for other resource types.