I don't have a solution for you, but --
> static gpgme_error_t passphrase_cb(void *hook, const char *uid_hint, const
> char *passphrase_info,
>int prev_was_bad, int fd){
>
> std::string passphraseString;
> std::cout<< "Enter your password:";
> std:
> If your problem is merely lack of entropy on a VM, then I'd recommend
> installing haveged, available in Jessie. It
> broadens the sources used by the kernel for the entropy pool.
Yes, that was the problem. I installed haveged and it worked. But it seems
that the key generation in my C++ appli