Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: devel

verify problem

 

 

GnuPG devel RSS feed   Index | Next | Previous | View Threaded


comp.ogz at gmail

Mar 9, 2009, 2:49 AM

Post #1 of 2 (428 views)
Permalink
verify problem

Hi,

I was trying to verify a binary file which is signed by using "gpg -s"
command. But i couldn't managed to make my code work. I decided to
try a simple example to understand the basics so i checked the
t-verify.c file under tests directory. I am using gpgme1.0-1.1.5 which
is compiled with lfs support disabled.

mytest-verify2.c is nearly same with the t-verify.c file. What i
didn't understand about the code is, the signed message test_sig2,
should be verified with a public key. How does gpgme_op_verify find
that public key and verify the signed message whcih has a cleartext
sign? So i need some help to figure out the problem.

If i can understand what the problem with this code i can find what
should i do at the mytest-verify.c which should be verifing a binary
file.

Thanx.

--
Oğuz Yarımtepe
www.loopbacking.info
Attachments: mytest-verify2.c (1.12 KB)
  mytest-verify.c (6.03 KB)


wk at gnupg

Mar 9, 2009, 6:58 AM

Post #2 of 2 (389 views)
Permalink
Re: verify problem [In reply to]

On Mon, 9 Mar 2009 10:49, comp.ogz [at] gmail said:

> should be verified with a public key. How does gpgme_op_verify find
> that public key and verify the signed message whcih has a cleartext
> sign? So i need some help to figure out the problem.

The signature has a key ID and gpg uses this key id to find the key.
The key needs to be in the pubring.gpg of course. There are gpg options
to retrieve the key from an external sources (keyserver) on the fly.


Salam-Shalom,

Werner



--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

GnuPG devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.