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

"Can't find signing key in key ring" due to PgpPublicKeyRingBundle or GetDecoderStream functions. #112

Open
mySYSMON opened this issue Feb 4, 2021 · 2 comments

Comments

@mySYSMON
Copy link

mySYSMON commented Feb 4, 2021

Greetings! I made a program that shows a basic example of the issue. For some reason the size of pgpPub.Size is 0. Any idea what would cause that?

Program.cs.txt

console output...

pubkey.Length: 19
inputStream.Length: 19
Org.BouncyCastle.Bcpg.ArmoredInputStream
pgpPub.Size:0
---------------

ConsoleAppExample.exe (process 18756) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
@mattosaurus
Copy link
Owner

Thanks, I'll take a look at this next week hopefully.

@mySYSMON
Copy link
Author

mySYSMON commented Feb 5, 2021

Sounds good. Adding this link since it seems related

"I've been trying to use the BouncyCastle library to do PGP encryption/decryption. I have some code that I need to modify to use streams only - no files. I tried removing the PgpUtilities.WriteFileToLiteralData() and then making it return a stream, but it didn't work (output stream was empty)."

https://stackoverflow.com/questions/25441366/bouncycastle-in-memory-pgp-encryption-in-c-sharp

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

No branches or pull requests

2 participants