-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixed a bug that the little-endian Microblaze does not work when MBEDTLS_HAVE_ASM is defined #4686
Fixed a bug that the little-endian Microblaze does not work when MBEDTLS_HAVE_ASM is defined #4686
Conversation
a3aa255
to
8e2d3e3
Compare
f3b7a07
to
d027a88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. I haven't reviewed the code for any other similar issues. I have not run any tests (as you're undoubtedly aware of, we do not have any testing on Microblaze).
Since this is a bug fix, it needs a changelog entry. Can you please create a file ChangeLog.d/bignum-little-endian-microblaze.txt
containing something like
Bugfix
* Fix bignum multiplication (and therefore asymmetric cryptography) on
little-endian Microblaze when MBEDTLS_HAVE_ASM is enabled. Fixes #2020.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a Changelog
This addresses the same issue as #5580 - although I think (but am not sure) that 5580 doesn't properly fix for both endiannesses, whereas this clearly has a code path for both big and little endian. So superficially it looks like this might be the preferred fix. |
Rebased and Changelog added. @Kazuyuki-Kimura or @Eurecam-Benjamin please could you test and confirm that addresses the issue? Ideally we also need a 2.28 backport. Thanks. |
Fixed a bug that the little-endian Microblaze does not work when MBEDTLS_HAVE_ASM is defined. Signed-off-by: Kazuyuki Kimura <[email protected]> Signed-off-by: Dave Rodgman <[email protected]>
Signed-off-by: Dave Rodgman <[email protected]>
Discussed in historical review; we agreed this is OK to merge without being able to properly test. |
"lhui r9, r3, 0 \n\t" | ||
#endif | ||
|
||
#define MULADDC_X1_CORE \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
annoying that the trailing \
doesn't line up, but ah well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixed a bug that the little-endian Microblaze does not work when MBEDTLS_HAVE_ASM is defined.
I accidentally closed #4586.... sorry.
Signed-off-by: Kazuyuki Kimura [email protected]
Fixes #2020
Backport: #6156