Questions tagged [gpgme]

GPGME (abbreviated from GnuPG Made Easy) is a library designed to make access to GnuPG easier for applications.

71 questions
2
votes
1 answer

how to bypass pinentry (passphrase screen) while decrypting a file using gpgme

I am trying to decrypt a file from the server where I have the required public key of that server. The keyring has a password protection and so when I try to decrypt a file, it asks me for a passphrase. Is there a way to bypass that passphrase by…
kill007
  • 361
  • 1
  • 4
  • 13
2
votes
0 answers

Difficulties with GPGME and Common Lisp when building an executable

I'm working on a project in Common Lisp that uses GPGME for encryption. GPGME is installed from my distribution's repositories. The following code works correctly when running in the repl, or if I load the file with --load and --eval '(main)' --eval…
2
votes
0 answers

GPG Decrypt Chunk From Stream

I'm attempting to stream several large symmetrically encrypted .csv.gpg (40GB+ each) files from S3 to gnupg to an output stream. I'd like to process the files in chunks using streams so that we never need to download the entire encrypted/decrypted…
doremi
  • 14,921
  • 30
  • 93
  • 148
2
votes
1 answer

How to suppress valgrind warnings from gpgme?

I'm trying to use GPGME in my code to verify some signatures. However, simply initializing and releasing the GPGME contexts causes valgrind to spew a large number of warnings. For example: #include int main() { …
darnir
  • 4,870
  • 4
  • 32
  • 47
2
votes
1 answer

Why does GPGME / GnuPG use pinentry for password input?

GPGME uses a passphrase_cb method to fetch the password from the user for operations, which require access to private keys. This callback can only be overwritten for symmetric encryption, in all other cases the default pinentry is used. All this…
little_planet
  • 1,005
  • 1
  • 16
  • 35
2
votes
2 answers

Error while generating key with GPGME

I'm trying to generate a new key with GPGME but unfortunately I can't make the following code work: std::string def = "" " Key-Type: default " " Subkey-Type: default" …
little_planet
  • 1,005
  • 1
  • 16
  • 35
2
votes
1 answer

Symmetric Encryption with GPGME

According to the documentation the gpgme_op_encrypt method of GPGME is able to perform symmetric encryption tasks: gpgme_op_encrypt (gpgme_ctx_t ctx, gpgme_key_t recp[], gpgme_encrypt_flags_t flags, gpgme_data_t plain, gpgme_data_t cipher) If recp…
little_planet
  • 1,005
  • 1
  • 16
  • 35
2
votes
1 answer

GPGME : Invalid crypto engine

I am trying to check use gpgme on a C++ project but when I try to access the OpenPGP engine I have install GnuPG on my computer, and I'm running under windows. More over the command gpgconf and gpg2 works fine, so GnuGP is well installed I set…
The Bluff
  • 91
  • 9
2
votes
0 answers

In PHP using gpupg_decrypt never completes

I'm using gnupg PHP module from pecl. Specifically: gpgme-devel 1.1.8 gnupg module 1.3.3 Encryption works fine, and is fast. Using gpg at the commandline decryption is fast. When I try to decrypt from PHP the page never loads, even messages before…
J. A. Streich
  • 1,683
  • 10
  • 13
2
votes
0 answers

GPGME: Best practices for automatic decryption in rails server

I'd like to be able ato implement the following behaviour : An admin should be asked the passphrase to the GPG production key during the Rails server startup in production The passphrase should not be stored anywhere other than RAM Decryption…
manu_v
  • 1,248
  • 2
  • 12
  • 21
1
vote
0 answers

Problem Installing gnupg php extension mac m1

So i am trying to install gnupg on my mac m1 I found this question and tried to follow this Install PHP gnupg using PECL on MAC/MAMP 10.8.4 Doesn't seem to work for me, when i run pecl install gnupg Getting the error Please reinstall the gpgme…
1
vote
1 answer

changing key trust level (validity) with gpgme

GPGME provides information about a key's trust level as the owner_trust field which is of gpgme_validity_t type. However, I could not find a function in the documentation or the gpgme.h header file that allows me to change the validity of a key. The…
Ilka
  • 50
  • 8
1
vote
0 answers

GPGME: how to check if we can decrypt a secret and own a matching key?

With GPGME, how would I check if I can decrypt a given secret with the current keychain. I can attempt decryption with gpgme_op_decrypt and catch GPG_ERR_NO_SECKEY errors, but this seems non-optimal, nor do I know if this covers all cases. Is there…
Tim Visée
  • 2,988
  • 4
  • 45
  • 55
1
vote
1 answer

Getting a PIP error when trying to download all my current packages for offline use

I'm trying to download TensorFlow and all its dependencies, so that I can PIP install it onto another computer without internet. I've installed Tensorflow onto my Docker Container running RH UBI8 via PIP3. So far I executed : pip3 freeze >…
Raven
  • 529
  • 7
  • 27
1
vote
0 answers

Encryption using GPGME in C

I am currently working on a project that requires file encryption using GPGME. I have found this sandbox code and am trying to get it going to help understand the subject. I am getting held up on line 46 with the gpgme_get_key() function and it is…
CJD
  • 55
  • 5