Skip to content

System.IO.IOException : unknown object in stream SecretSubkey #311

Open
@haegg78

Description

@haegg78

Version used: 6.5.1

I have used the examples from https://www.nuget.org/packages/PgpCore/#readme-body-tab to be see if I can use the functionality that is provided.

I have then created a case where I generate a new key using GenerateKey (https://www.nuget.org/packages/PgpCore/#generate-key) and then encrypt and sign a file using the first example (https://www.nuget.org/packages/PgpCore/#encrypt-and-sign) and finally I try to decrypt and verify the encrypted and signed file using the first example (https://www.nuget.org/packages/PgpCore/#decrypt-and-verify).

If I use gpg to decrypt and verify the encrypted and signed payload then everything works and gpg reports the right signature etc. But when I use the example code then I get this exception:

Image

I have tried to use both keys created using gpg and using PgpCore with the same result.

What is the reason for this error being thrown?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions