Setting digest-algo for a signature via gpgme?

View: New views
2 Messages — Rating Filter:   Alert me  

Setting digest-algo for a signature via gpgme?

by Todd Zullinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to set the digest-algo used via gpgme when creating
some clearsigned text?  The goal would be to generate a signature and
ensure that, say, SHA-256 is used.  It can be done if a config file is
created, but for the case where this is being done, I am told setting
up config files would be nice to avoid.

In the end this will be done via pygpgme, but I want to check if it's
even possible with gpgme first because after reading through the
documentation, I don't have a good feeling for whether it is.

Thanks for any pointers.

--
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Never let your sense of morals keep you from doing what is right.



_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

attachment0 (554 bytes) Download Attachment

Re: Setting digest-algo for a signature via gpgme?

by Marcus Brinkmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Todd Zullinger wrote:
> Is it possible to set the digest-algo used via gpgme when creating
> some clearsigned text?  The goal would be to generate a signature and
> ensure that, say, SHA-256 is used.  It can be done if a config file is
> created, but for the case where this is being done, I am told setting
> up config files would be nice to avoid.

GPGME doesn't provide this option.  If you set up a gnupg config directory,
you can use it setting the home_dir option.

Thanks,
Marcus


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@...
http://lists.gnupg.org/mailman/listinfo/gnupg-devel