-
Notifications
You must be signed in to change notification settings - Fork 711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outlook not able to decrypt email - part 2 #3076
Comments
The log now says we are getting 245 B of data from the PKCS#1.5 padded block instead of 16 we should have from my fast check of the data block.
We changed in 0.25.0 the depadding function to be constant time, but it looks like it does not handle this case well. @xhanulik can you have a look if this is an issue of the depadding or of the way how the depadding is used in the minidriver? It might be that the function is now more strict and we might need to inject the missing null byte to the beginning in the cardos driver. |
The depadding function correctly returns the length of depadded message, but the minidriver uses the function argument to get the length, which is not set correctly. I will create PR with fix. |
As soon as you have binaries, I'd love to test them. |
I re-tested with 0.24 and I can confirm, there it is still working. |
See my report #3085 about CardRSADecrypt. |
Problem Description
When trying to decrypt an email in MS Outlook with OpenSC 0.25 I receive the following error message:
This seems to be related to #2925
Proposed Resolution
Email should be decrypted
Steps to reproduce
Decrypting an email
Logs
https://gist.github.com/RufusJWB/c2ec57352395e7c7508dd6375622fb60
The text was updated successfully, but these errors were encountered: