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

Closed
pjzander-signify opened this issue Mar 31, 2021 · 0 comments · Fixed by #5730
Closed

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

pjzander-signify opened this issue Mar 31, 2021 · 0 comments · Fixed by #5730

Comments

@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.

Proposed Solution

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

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 a pull request may close this issue.

1 participant