Antony Prince: > On 09/10/2015 05:17 PM, Antony Prince wrote: >> without gpgme installed). I'm not 100% sure how to test the >> functionality of the binary and library, so if anyone wants to give it a >> go, I'd be glad to hear the results. The ftp server[2] allows for >> anonymous download. >> [2]ftp://blazrsoft.com/ >> > > As an update on this, I've written a very short program to invoke the > test functions of the library. This is more of a learning exercise for > me, but I figured I'd let anyone interested know that I was still > pursuing it. It doesn't work 100% yet and I'm working towards figuring > it out, but at the very least, I've got the suite() method in > com.freiheit.gnupg.tests.GnuPGTestSuite to start attempting its key > creation tests. The results are: > > suite() > genKey: " <GnupgKeyParms format="internal"> > Key-Type: DSA > Key-Length: 1024 > Subkey-Type: ELG-E > Subkey-Length: 1024 > Name-Real: alpha > Name-Comment: just a test > Name-Email: al...@alpha.org > Expire-Date: 0 > Passphrase: alpha > </GnupgKeyParms>" > Exception in thread "main" com.freiheit.gnupg.GnuPGException: 117440513: > General error > at com.freiheit.gnupg.GnuPGContext.gpgmeOpGenKey(Native Method) > at com.freiheit.gnupg.GnuPGContext.genKey(GnuPGContext.java:748) > at com.freiheit.gnupg.tests.GnuPGTestSuite.suite(GnuPGTestSuite.java:66) > at com.blazrsoft.gnupg4javatester.MainClass.main(MainClass.java:8) > > It is failing at the call to genKey(). I'll figure it out eventually I'm > sure. This is using the .jar and .so files created by the Travis CI > builds that I mentioned earlier. I'll likely perform tests with natively > built files to see if the issue lies there, etc. If I can maintain the > motivation, I may eventually work on my own Java front-end for the > library, just to see if I can do it. >
This is all great work, Antony! We'd be happy to include it in our repo. We've basically only used gnupg-for-java in our Android app GnuPG for Android, so it is not so polished on desktop, as you saw. .hc -- PGP fingerprint: 5E61 C878 0F86 295C E17D 8677 9F0F E587 374B BE81 https://pgp.mit.edu/pks/lookup?op=vindex&search=0x9F0FE587374BBE81
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users