bc-csharp
bc-csharp copied to clipboard
Unable to Encrypt
Please see error info:
Stream clear = pbe.GetDataStream(sKey);
PgpObjectFactory plainFact = new PgpObjectFactory(clear);
PgpObject message = plainFact.NextPgpObject();
if (message is PgpCompressedData) { PgpCompressedData cData = (PgpCompressedData)message; PgpObjectFactory pgpFact = new PgpObjectFactory(cData.GetDataStream());
message = pgpFact.NextPgpObject(); }
The logic then returns False and falls into this reason:
string.Format(“Message is not a simple encrypted file. THe type unknown for file {0}”, outputFileName),
This also affects the decryption.