Skip to content
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 alignment assumptions in SHA2 update. #2034

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

jmattsson
Copy link
Member

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.
  • The code changes are reflected in the documentation at docs/en/*.

When a SHAxxx_Update() call was made with a length not divisible by 4, a subsequent SHAxxx_Update() would end up causing an unaligned load exception. To counter this, we bounce the unaligned data via the internal context buffer.

Unaligned loads are a no-no on many architectures, the ESP8266 included.
@marcelstoer marcelstoer added this to the 2.1 follow-up milestone Jul 31, 2017
@marcelstoer marcelstoer merged commit e09e830 into nodemcu:dev Jul 31, 2017
eiselekd pushed a commit to eiselekd/nodemcu-firmware that referenced this pull request Jan 7, 2018
Unaligned loads are a no-no on many architectures, the ESP8266 included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants