SB
2010-07-28 20:16:44 UTC
Hi all,
I am working on a project to move encryption functionality from using
PGP 6.5.8 to GPG 1.4.10.
There is a requirement in our system that we check if there was a
signature on an encrypted message.
I need to give the user capability to accept or reject the message
depending on whether
1. there was no sign
2. there was a sign, but it cannot be validated due to its corr public
key not being present
3. there was a sign, it was verified and it was bad.
In my case if the message is going to be signed, it is always going to
be signed+encrypted. So there is not going to be a detached signature
file for me to verify.
So I tried using --verify option on a signed+encrypted message, but it
does not work.
(gpg.exe --verify EncryptedData.gpg)
it gives the exception
gpg: verify signatures failed: unexpected data.
But I am able to correctly decrypt the message. I need to know if
there is a valid sign on the message before decrypting, since the
messages are very big and that would save lot of processing time.
Thanks for your help
I am working on a project to move encryption functionality from using
PGP 6.5.8 to GPG 1.4.10.
There is a requirement in our system that we check if there was a
signature on an encrypted message.
I need to give the user capability to accept or reject the message
depending on whether
1. there was no sign
2. there was a sign, but it cannot be validated due to its corr public
key not being present
3. there was a sign, it was verified and it was bad.
In my case if the message is going to be signed, it is always going to
be signed+encrypted. So there is not going to be a detached signature
file for me to verify.
So I tried using --verify option on a signed+encrypted message, but it
does not work.
(gpg.exe --verify EncryptedData.gpg)
it gives the exception
gpg: verify signatures failed: unexpected data.
But I am able to correctly decrypt the message. I need to know if
there is a valid sign on the message before decrypting, since the
messages are very big and that would save lot of processing time.
Thanks for your help