I have to validate a digital signature embedded in an XML file. The signature has been generated using RSA 2048 bit document signer key. The file has the Signature as below:
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></Transforms><DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/><DigestValue>Cppv05Vz3hVEr+UiArSn6aDkGcrF4edvuvY1diDU7Uc=</DigestValue></Reference></SignedInfo><SignatureValue>b1fsjIbXZSi1kzMRobLksjJjQsNek3TT11vy+WZNDZpAIBoEIkzFR6MLk1OXxNBSkaQR+9mxC+ug
deu8/tS4Vz7fpg5DMXwFNxRH8is+HrNbuGcZnDuD/YFh547mm9pQy8xrpV+ubt7DBd0a+Da638UX
CPvLNXOIcGlXupldGlvKi1jxnZ6Gc3JBGUVQnfW2LzkaUQUVLPiRrYzethqUe+ZVuwxZ3CuaPg5F
sTyjzdx2Gps+hsgAqJokb4jJ4V89iKOmE/eAvDQTJVvCiUzv1jCO64RfuqQ1SsAmESfccmhePoqG
95678wJ0+EhL2R91DvDRdEQzp5sddOqHpn/o0g==</SignatureValue><KeyInfo><KeyValue><RSAKeyValue><Modulus>01DqzBsJTyMHT2S9MK5AIyFXNU646kwiOK3uymXIy9EW0nRKNKRkeIRTlGwX4wEnymGtGgX5B/Ij
1elkLN4VJ9GplDV+wf0Lp2i2q4E6uRiWIzsqq42MCQgv8Fq/IPqjqPbeP9yh/8YPmBiMehBmhQd3
qzl77C03k6d0yBIO5q/zXneTK9uFBNEL5yNpukrLGBcf3b9VHsjXpEaQrxGSMHCgNWpQgXpEcBr5
OJ0/XxWbgMCZMlkYe1d6gswjuCRZ/xxJwEfbSO5AsnPtyqxSIjyhgEi9REtYnzaWwOBN4JCqt0pM
L0ja23lUwVJuNwkwNGKBXvkGoXUln8Sf7PIv7w==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue></KeyValue></KeyInfo></Signature>
I have the base64 encoded public key with which I need to validate the signature. Can anybody please provide reference to some Objective C code that will help to achieve the signature validation?
Regards,
Chinmoy Das