Single Pass Signing and Encrypting with Bouncy Castle
843811Feb 22 2008 — edited Feb 22 2008I am trying to use the Bouncy Castle API to sign a file with my private key and encrypt with a recipients public key.
I am able to do this in two steps...
1. Sign
2. Encrypt
But I need to be able to do this in ONE step. The example file I was sent both decrypts and verifies the signature with a decrypt command.
I can get it to work with gnuPG using the command "gpg -se -r <recipient> fileName", but I would like to stick with using Java libraries if possible.
Does anyone have any suggestions?
Thanks,
Bryan