gnupg-for-java

Antony Prince antony at blazrsoft.com
Fri Sep 11 20:08:03 CEST 2015


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: alpha at 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.

-- 

Antony Prince

Key ID: 0xAF3D4087301B1B19
Fingerprint: 591FF17F7A4AA8D0F659C482AF3D4087301B1B19
URL: https://keyserver.blazrsoft.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150911/72a6c1c7/attachment.sig>


More information about the Gnupg-users mailing list