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

Pin code is used in the endian mode of the processor (#5726) #5730

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

pjzander-signify
Copy link
Contributor

Problem

The 32 bits pin code is passed to the function pbkdf2_sha256 as an array of 4 bytes. This is done by passing the address of the 32 bits pin code. However, this will fail on a big endian processor.

Summary of Changes

Convert the pin code to little endian format before passing to pbkdf2_sha256.

Fixes #5726

@bzbarsky-apple bzbarsky-apple merged commit 3c345cd into project-chip:master Mar 31, 2021
@pjzander-signify pjzander-signify deleted the issue_5726 branch May 11, 2021 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pin code is used in the endian mode of the processor
4 participants