Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for sign only #32

Open
mgrossmann opened this issue May 13, 2019 · 2 comments
Open

Support for sign only #32

mgrossmann opened this issue May 13, 2019 · 2 comments

Comments

@mgrossmann
Copy link

I would like to offer the functions sign() and verify(). As you know from PGP, I want to create a second file in which the signature of the original file is stored. Currently there are only the methods encryptToStream() and decryptAndVerifyStream() in the class BouncyGPG.

Best regards /
mit freundlichen Grüßen

Mike

@neuhalje
Copy link
Owner

You mean implement detached signatures?

I would really appreciate a pull request. Right now I am quite busy at $DAYJOB ant will probably be till the end of summer. So I can discuss PRs, API and test design but won't really be able to implement much.

On a different topic: I am also in the process of implementing key generation (#30) - help gladly accepted :-) .

@jeffisaak
Copy link

I had a need for this as well, so I took the BuildEncryptionOutputStreamAPI and BuildDecryptionInputStreamAPI classes, cut some stuff out, and turned them into a working BuildSigningOutputStreamAPI and BuildVerificationInputStreamAPI. Did some basic testing and the results seem to be GPG-compatible, so I'm happy and using my hacked-up classes as they are. Oh, I also needed to take the PGPEncryptingStream and hack out a PGPSigningStream class.

They're kind of gross, but they work (I think), and could probably serve as the starting point for a pull request, but I'm focussed on my own project, of course. I'll attach what I've got

bouncy-signing.zip

Best,

Jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants