Using output from gpg --list-packets on a key to get the mpi values to generate s-expressions
etiquettesg at gmail.com
Wed Jun 1 06:53:35 CEST 2011
I am trying to use gpg generated public keys to do encryption using
libgcrypt. I used the list packets command on the key to get me the contents
of the key and parsed the mpi values into an s-expression. So when I try to
encode my session key with my public key I get the error "Odd hexadecimal
numbers in S-expression"? I think list packets is maybe giving me hex
numbers without the leading zero? If so what do I need to do to get me mpi
values that I can use in libgcrypt?
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnupg-users