Digital Signature Verification

Vishal Rana vishal.rana118 at gmail.com
Wed Apr 6 07:17:07 CEST 2022


HiTeam,

I am working on image signing and verification.
For feasibility study I have selected gnupg.
*Steps I executed..*
1) made pair of private and public key (RSA4096)
2) I am able to digitally sign an image using "detach". Getting fyl.sig as
output        file.
3) exported the public key using --export -a (ascii armour).


*Step I want to execute  at verification side.. But not aware.*

1) Want to find 'n' and 'e' values from a public key which is imported from
a signed machine. Public key is in ascii armor format.
    want to write my public key in below format.
///////////////////////////////////Copied from
rsa.c///////////////////////////////////////////////////////////////
static const char sample_public_key[] =
" (public-key"
"  (rsa"
"   (n #009F56231A3D82E3E7D613D59D53E9AB921BEF9F08A782AED0B6E46ADBC853EC"
"       7C71C422435A3CD8FA0DB9EFD55CD3295BADC4E8E2E2B94E15AE82866AB8ADE8"
"       7E469FAE76DC3577DE87F1F419C4EB41123DFAF8D16922D5EDBAD6E9076D5A1C"
"       958106F0AE5E2E9193C6B49124C64C2A241C4075D4AF16299EB87A6585BAE917"
"       DEF27FCDD165764D069BC18D16527B29DAAB549F7BBED4A7C6A842D203ED6613"
"       6E2411744E432CD26D940132F25874483DCAEECDFD95744819CBCF1EA810681C"
"       42907EBCB1C7EAFBE75C87EC32C5413EA10476545D3FC7B2ADB1B66B7F200918"
"
664B0E5261C2895AA28B0DE321E921B3F877172CCCAB81F43EF98002916156F6CB#)"
"   (e #010001#)))";
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

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.

Regards,
Vishal




-- 




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


More information about the Gnupg-users mailing list