<div dir="ltr">Hi Team,<div><br><div>Verify API in libgcrypt is expecting all arguments in <b>
gcry_sexp_t </b>data<b> </b>type. <div>gcry_error_t <b>gcry_pk_verify (</b><i style="font-weight:bold">gcry_sexp_t</i><b> </b>sig<b>, </b><i style="font-weight:bold">gcry_sexp_t </i>data<b>, </b><i style="font-weight:bold">gcry_sexp_t </i>pkey<b>) .</b></div><div><b><br></b></div><div> But my received signed image is some unreadable
"<span style="font-size:13px;background-color:rgb(227,230,232);color:rgb(35,38,41);font-family:ui-monospace,"Cascadia Mono","Segoe UI Mono","Liberation Mono",Menlo,Monaco,Consolas,monospace;white-space:pre-wrap">--detach-sign</span>" file .</div><div> How I am able to make a received signed image to
<b> gcry_sexp_t </b>please suggest<b>.</b><b><br></b></div><div><b><br></b></div><div><b>Regards,</b></div><div><b>Vishal Rana</b></div><div><br></div><div>Regards,</div><div>Vishal Rana</div><div><br></div><div> <br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 8, 2022 at 1:05 PM Vishal Rana <<a href="mailto:vishal.rana118@gmail.com">vishal.rana118@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Team,<div><br></div><div>Thank you Shalom, above suggestion is working.</div><div>But Digital signature verify is still not working.</div><div><br></div><div>> I am signing image using <b>gnupg</b> from server side using "<span style="background-color:rgb(227,230,232);color:rgb(35,38,41);font-family:ui-monospace,"Cascadia Mono","Segoe UI Mono","Liberation Mono",Menlo,Monaco,Consolas,monospace;font-size:13px;white-space:pre-wrap">--detach-sign</span>" and getting <b>"image.sig</b>" file.</div><div>> Which I am trying to verify on another machine using libgcrypt. On the verification side I am having "image.bin",image.sig, "PublicKey".</div><div>I am applying a hashing func on "image.bin" at the verification side to get MsgDigest_of_RxMsg.</div><div>I am passing arguments to _gcry_pk_verify ( "Rx_image.sig",
MsgDigest_of_RxMsg , Public_key).</div><div><br></div><div>Please suggest it to me if I am missing any step. Like any conversion or decoding is required for "image.sig" before passing it to _gcry_pk_verify ().</div><div><br></div><div><br></div><div>Regards,</div><div>Vishal Rana.</div><div><br></div><div> <br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 7, 2022 at 7:44 PM Werner Koch <<a href="mailto:wk@gnupg.org" target="_blank">wk@gnupg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 7 Apr 2022 15:26, Vishal Rana said:<br>
<br>
> Please suggest to me how to proceed.<br>
<br>
Most GnuPG tools feature a debug option<br>
<br>
--debug mpi<br>
--debug crypto<br>
<br>
which shows you lots of debug info. For example the raw RSA parameters.<br>
Use "--debug help" to see all debug classes. But always remember that<br>
these are debug options and the output is not a stable API in any way.<br>
<br>
<br>
Shalom-Salam,<br>
<br>
Werner<br>
<br>
<br>
-- <br>
The pioneers of a warless world are the youth that<br>
refuse military service. - A. Einstein<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><span style="color:rgb(102,102,204);font-family:garamond,serif"> </span><div style="text-align:justify"><span style="color:rgb(64,49,82);font-size:10pt"><font face="Courier New"><font style="font-family:verdana,sans-serif" size="2"><b><font style="font-family:garamond,serif;color:rgb(51,51,255)"><span style="color:rgb(0,0,0);font-family:verdana,sans-serif">Thanks & Regards,</span><br><br></font><font color="#000099"><font style="color:rgb(51,51,255);font-family:verdana,sans-serif">Vishal Rana<br>Mobile :09422123401</font></font></b></font><b><font color="#000099" face="georgia,serif" size="4"><br></font></b></font></span></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><span style="color:rgb(102,102,204);font-family:garamond,serif"> </span><div style="text-align:justify"><span style="color:rgb(64,49,82);font-size:10pt"><font face="Courier New"><font style="font-family:verdana,sans-serif" size="2"><b><font style="font-family:garamond,serif;color:rgb(51,51,255)"><span style="color:rgb(0,0,0);font-family:verdana,sans-serif">Thanks & Regards,</span><br><br></font><font color="#000099"><font style="color:rgb(51,51,255);font-family:verdana,sans-serif">Vishal Rana<br>Mobile :09422123401</font></font></b></font><b><font color="#000099" face="georgia,serif" size="4"><br></font></b></font></span></div></div>