bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

InputArmoredStream "invalid armor header" Exception on binary data

Open Reizook opened this issue 3 years ago • 0 comments

Hello,

I'm trying to implement a verification of clear PGP signature on my project and i took my inspiration from your example "crypto/test/src/openpgp/examples/ClearSignedFileProcessor.cs", so i've got almost the same.

It's works pretty good with signed text plain files data but when i try to verify an image that is clear signed, i have got an Exception "invalid armor header"

When i examine at what line the process stopped in, it's on the line 8252: image

And as you can see, i've got a double dash. I think the InputArmoredStream logic thought it's was a new PGP header. But i don't understand why, because the encapsuled data can be binary, right ? I don't have any idea how i can bypass this issue...

Thanks for your help. Regards, Kevin

Reizook avatar Oct 14 '22 16:10 Reizook