Use public Key to decrypt a signature
Posted: Thu 27 Aug 2015 01:39
Hello,
...sorry to bother you again but I'm really stuck now.
I have a certificate with a Public Key in it which comes from a SmartCard.
I can import it into a TScCertificate component and it works well on several operations that I have to perform. I can also 'see' the RSA parameters that are enclosed.
Now the regulations say that I need to use the Public Key to decrypt a Signature which I also get from the chip. Later on I have to compare the decrypted result with another value to be sure the chip and its certificate is authentic.
How can I do that?
When I use the TScKey.Decrypt method on the encrypted signature data I get the message that it can not be decrypted without a Public Key. The same message appears when I try Decryp with the TScCertificate component.
Can someone please help me?
...sorry to bother you again but I'm really stuck now.
I have a certificate with a Public Key in it which comes from a SmartCard.
I can import it into a TScCertificate component and it works well on several operations that I have to perform. I can also 'see' the RSA parameters that are enclosed.
Now the regulations say that I need to use the Public Key to decrypt a Signature which I also get from the chip. Later on I have to compare the decrypted result with another value to be sure the chip and its certificate is authentic.
How can I do that?
When I use the TScKey.Decrypt method on the encrypted signature data I get the message that it can not be decrypted without a Public Key. The same message appears when I try Decryp with the TScCertificate component.
Can someone please help me?