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

`NullReferenceException` error when trying to get a recipient based on `SubjectKeyIdentifier`

Open rosco12345 opened this issue 1 year ago • 1 comments

We recently tried to update from version 2.3.1 to 2.4.0

This caused our encryption tests to break. I've produced a minimal example here. It's simply a test that encrypts a string then decrypts it, asserting that the original plaintext and the decrypted plaintext are the same.

The test in that example passes with version 2.3.1 and fails with a null reference error when using GetFirstRecipient().

I wonder if this could be related to changes made in a35474d

rosco12345 avatar May 31 '24 10:05 rosco12345