You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using (ChoPGPEncryptDecrypt pgp = new ChoPGPEncryptDecrypt() { FileType = ChoPGPFileType.UTF8 }) { MemoryStream outStream = new MemoryStream(); using (Stream publicKeyStream = new MemoryStream(GetPublicKey()), privateKeyStream = new MemoryStream(GetPrivateKey())) { inputStream.Position = 0; pgp.EncryptAndSign(inputStream, outStream, publicKeyStream, privateKeyStream, SignPassword); return outStream.ToArray(); } }
here is the code which is working with normal private key which I generated from online website but when I generate Keys from PGPStudio so that private key is also use compression algorithm i.e ZIP so using that key so it will give exception
Org.BouncyCastle.Bcpg.OpenPgp.PgpPublicKeyRing found where PgpSecretKeyRing expected
Hello can you please tell me why it is giving this error
Org.BouncyCastle.Bcpg.OpenPgp.PgpPublicKeyRing found where PgpSecretKeyRing expected
It throws only when I create keys through OpenPGP studio. otherwise, it is working fine
The text was updated successfully, but these errors were encountered: