0 votes
by (250 points)

How can I handle errors when decrypting a mail?

1 Unsupported OAEP encoding parameters source
2 Unsupported OAEP hashing algorithm and mask generation algorithm combination

The sender insists that his emails are encrypted correctly. How can I proof this?

Thank you.

Applies to: Rebex Secure Mail
by (144k points)
I have sent a link to a preliminary hotfix for (1) to your e-mail address. Please give it a try and let us know whether it solves the issue. We will solve (2) soon as well. See my reply below for more information.
by (250 points)
The hotfix for (1) works very fine. I am very excited - thank you. When will that hotfix will be available in a release build?

My evaluation of your library will be completed shortly. I am confident that we will decide for your product.
by (144k points)
Thanks! Hotfix for (1) will be released very soon - as soon as we test it sufficiently on all supported platforms and make sure it's compatible with third-party implementations.

Issue (2) is less severe and will be added in a subsequent release. However, a beta should be available next week as well. We'll send you a link.
by (144k points)
I have just sent a link to a hotfix for (2) to you as well. Thank for bringing these issues to our attention!
by (250 points)
I've downloaded and testet your Hotfix for (2).  Works fine. Thank you!
by (250 points)
We have already purchased Rebex Secure Mail (a colleage with the same email-domain).
A big thank you for the support until now. :)

I am looking forward to download the release including hotfix (1) and (2).
by (144k points)
Thanks! We are almost finished with the hotfix release and we will most likely going to publish it tomorrow. Thanks for helping us make it more compatible! :-)
by (144k points)
We just released Rebex Secure Mail 2017 R6.3 that includes both hotfixes:
https://rebex.net/secure-mail.net/history.aspx#2017R6.3
The "unsupported hash algorithm combination" turned out to be more common than we expected, so we decided to include it as well.
by
I just updated to the new Release Rebex Secure Mail 2017 R6.3. But for mails of one of our customers I still get "Unsupported OAEP encoding parameters source".
As we also have a bouncycastle based java implementation in place, I now could reproduce the error with the following java OAEP parameters:
OAEPParameterSpec("SHA-256", "MGF1", MGF1ParameterSpec.SHA256, new PSource.PSpecified("1234".getBytes()))
by
Sorry my fault, I was still using Rebex Secure Mail 2017 R6.2 after the Update to R6.3 everything works perfect.
by (144k points)
Thanks for letting us know!

1 Answer

0 votes
by (144k points)
edited by
 
Best answer

The sender is most likely right. The first error was most likely triggered by a recently-discovered bug, while the second error is caused by a known limitation.

Update: This has been fixed in Rebex Secure Mail 2017 R6.3.

1) "Unsupported OAEP encoding parameters source" error occurs when the encrypted email used a non-empty input parameter (also known as label or P), which is a kind of salt for the OAEP calculations. This bug has been reported by another user few days ago. We have already fixed it and will release a hotfix shortly.
This issue was not detected by our automated interoperability tests because of lack of real-world test data - we have apparently only been testing messages with empty labels (which seems to be a default behavior in OpenSSL and GPG's gpgsm utility as well).

2) "Unsupported OAEP hashing algorithm and mask generation algorithm combination" error occurs when the hashing algorithm used to compute the hash of the label is different than the hashing algorithm used in the OAEP mask generation function.
This is actually correct as well. However, Windows cryptographic APIs do not support RSA/OAEP with non-matching hash algorithms, and we expected such messages to be very rare, so we decided not to initially support this.
However, based on your feedback, it looks like such messages might not actually be as rare as we hoped, so we will add support for it shortly as well. (Due to lack of support in Windows, we will have to use a custom implementation, which means it will not work private keys stored in Windows key storage unless they are exportable.)

...