Digital Signature Verification

Vishal Rana vishal.rana118 at gmail.com
Thu Apr 7 11:56:18 CEST 2022


Thanks Stuart for replying. I am able to decode a public key which is in
ascii armor format. But decoded information is again block of Base64 like
//////////////////////////////////////////////////////////////////////////////////////////
99020D04624C0847011000CED5D5FF24
FAF1052D0254C83FBEA80D956D1F8A08
A3CACCF52DA10BF8465270A889F9A2B0
E61EE71AD239E39FEE37DA24E8CFCEA7
....
......
....... n
//////////////////////////////////////////////////////////////////////////

*From this how to find RSA public key (n,e) values?? not able to relate.*
I want to pass imported public key like below format to API  "*gcry_error_t
gcry_pk_verify (gcry sexp t sig, gcry sexp t data, gcry sexp t pkey*)"
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static const char sample_public_key[] =
" (public-key"
"  (rsa"
"   (n #009F56231A3D82E3E7D613D59D53E9AB921BEF9F08A782AED0B6E46ADBC853EC"
"       7C71C422435A3CD8FA0DB9EFD55CD3295BADC4E8E2E2B94E15AE82866AB8ADE8"
"       7E469FAE76DC3577DE87F1F419C4EB41123DFAF8D16922D5EDBAD6E9076D5A1C"
"       958106F0AE5E2E9193C6B49124C64C2A241C4075D4AF16299EB87A6585BAE917"
"       DEF27FCDD165764D069BC18D16527B29DAAB549F7BBED4A7C6A842D203ED6613"
"       6E2411744E432CD26D940132F25874483DCAEECDFD95744819CBCF1EA810681C"
"       42907EBCB1C7EAFBE75C87EC32C5413EA10476545D3FC7B2ADB1B66B7F200918"
"
664B0E5261C2895AA28B0DE321E921B3F877172CCCAB81F43EF98002916156F6CB#)"
"   (e #010001#)))";
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Please suggest to me how to proceed.

Regards,
Vishal Rana



On Wed, Apr 6, 2022 at 11:05 AM Stuart Longland <stuartl at longlandclan.id.au>
wrote:

> On Wed, 6 Apr 2022 10:47:07 +0530
> Vishal Rana via Gnupg-users <gnupg-users at gnupg.org> wrote:
>
> > But not sure how to decode imported ascii armor public key in above
> format.
> > I tried to find in gnupg documents but not able to get information.
> > Please suggest.
>
> https://datatracker.ietf.org/doc/html/rfc4880#section-6.2 describes the
> ASCII Armor format.
>
> That whole document should have lots of relevant bits.
> --
> Stuart Longland (aka Redhatter, VK4MSL)
>
> I haven't lost my mind...
>   ...it's backed up on a tape somewhere.
>


-- 




*Thanks & Regards,Vishal RanaMobile :09422123401*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20220407/6455ddcb/attachment.html>


More information about the Gnupg-users mailing list