Hi All,
We have developed an EID application in C#, reusing a lot of code from the CS/EidSamples and Tests.
For the older cards all is working fine reading data and verifying signatures with RSA.
With the newer cards I am having trouble verifying the data.
For the verification of the Identity data I found that I have to do the following to make it work.
ecDsa.VerifyData(data, signature, HashAlgorithmName.SHA384, DSASignatureFormat.Rfc3279DerSequence);
The 4th parameter does the trick here but I could not find any documentation on the requirement on the Signature format.
So far so good.
I am still stuck on the verification of the address data. I do the same concat as we do for RSA signed data, copied from the samples:
byte[] concatFiles = new byte[addressFile.Length + idSignature.Length];
Array.Copy(addressFile, 0, concatFiles, 0, addressFile.Length);
Array.Copy(idSignature, 0, concatFiles, addressFile.Length, idSignature.Length);
But the ecDsa.Verify returns false in this case.
Any help would be much appreciated.
Chris