我正在尝试为离线aadhaar-kyc验证应用程序使用给定的证书文件验证数字签名。
本说明在验证文件中给出。
下载后,aadhaar无纸脱机e-kyc具有以下XML:
上述XML的XSD
读取整个XML并从中分离S=__XXXX__标记。
利用基于RSA的散列和加密技术,使用签名验证算法
存在于__s_标记、剩余XML(不带“s”标记)和uidai公钥(此处可用)中的签名值将被送入算法以验证数字签名。
组织提供的示例C代码片段。(附:也不起作用)
)
using System;
using System.Security.Cryptography.X509Certificates;
using System.Xml;
namespace test
{
class MainClass
{
public static void Main(string[] args)
{
// link -> https://drive.google.com/file/d/1aSv3HJUFf5_42Z-FqpdVHEk5b3VA3T3D/view
string XMLFilePath = "offlineaadhaar.xml"; //Get the XML file
// link -> https://drive.google.com/file/d/1FW4ciIhZqJuelOcGF2x6VaBCSDO9J-gM/view
string KeyFilePath = "okyc-publickey.cer"; //Get the public key certificate file
XmlDocument O