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

psa_key_derivation_input_integer() does not detect bad state #185

Open
waleed-elmelegy-arm opened this issue Feb 26, 2025 · 1 comment · May be fixed by #186
Open

psa_key_derivation_input_integer() does not detect bad state #185

waleed-elmelegy-arm opened this issue Feb 26, 2025 · 1 comment · May be fixed by #186
Assignees
Labels
bug Something isn't working

Comments

@waleed-elmelegy-arm
Copy link
Contributor

waleed-elmelegy-arm commented Feb 26, 2025

Summary

psa_key_derivation_input_integer() when passed an operation that has already been aborted and the kdf algorithm used is PBKDF2 returns PSA_ERROR_INVALID_ARGUMENT instead of PSA_ERROR_BAD_STATE.

This was discovered while running psa-arch-tests.

Expected behavior

return PSA_ERROR_BAD_STATE.

Actual behavior

return PSA_ERROR_INVALID_ARGUMENT

@waleed-elmelegy-arm waleed-elmelegy-arm added the bug Something isn't working label Feb 26, 2025
@waleed-elmelegy-arm waleed-elmelegy-arm self-assigned this Feb 26, 2025
@waleed-elmelegy-arm
Copy link
Contributor Author

@adeaarm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant