Unknown object in stream 21

We have received recently an email from one of our customers that have encountered an exception with message “Unknown object in stream 21“.

The scenario when this exception occurred was: she tried to encrypt with an ASCII armored public key received from a partner with different operating system. The reason for the above exception was a strange line ending in the public key file.

We have updated OpenPGP Library for .NET to correct in memory the line ending of the public key file and if you encounter the same exception please update your production copy of the library through the Customers’ section.