Code Monkey home page Code Monkey logo

Comments (4)

proglottis avatar proglottis commented on July 18, 2024

This "No data" error comes straight from gpgme - GPG_ERR_NO_DATA https://www.gnupg.org/documentation/manuals/gpgme/Decrypt.html

GPG_ERR_NO_DATA if cipher does not contain any data to decrypt

I think this error message is probably misleading as these tests use their own keyring and definitely pass in data to decrypt.

I searched around a little and it seems to be a pretty common error message from gpgme but I'm not very familiar with it sorry. It's interesting that the Data tests are passing on their own, but no encryption/decryption or even export/import. The encryption error you get GPG_ERR_INV_VALUE https://www.gnupg.org/documentation/manuals/gpgme/Encrypting-a-Plaintext.html

GPG_ERR_INV_VALUE if ctx, recp, plain or cipher is not a valid pointer

from gpgme.

keltia avatar keltia commented on July 18, 2024

Ok but the thing is, gpg can decrypt that file just fine :(

from gpgme.

proglottis avatar proglottis commented on July 18, 2024

The tests do a wee bit of mucking around to try find the correct GPG binary to use (because some tests only work with gpg1). So maybe that's causing issues.

Maybe try run something like this and see if the binary location are what you'd expect https://play.golang.org/p/O-KodNjKXgi

from gpgme.

keltia avatar keltia commented on July 18, 2024

And it is not what I expected to thanks for the hint and GetEngineInfo(). I have indeed a broken gpg binary lying around. I'll check and close the issue if this is what I think.

from gpgme.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.