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

Remove deprecated things in psa/crypto_compat.h #4284

Closed
mpg opened this issue Apr 1, 2021 · 3 comments · Fixed by #4344
Closed

Remove deprecated things in psa/crypto_compat.h #4284

mpg opened this issue Apr 1, 2021 · 3 comments · Fixed by #4344
Assignees
Labels
enhancement good-first-issue Good for newcomers size-s Estimated task size: small (~2d)

Comments

@mpg
Copy link
Contributor

mpg commented Apr 1, 2021

There are a number of deprecated types and constants in include/psa/crypto_compat.h which seem to be for compatibility with previous version and should be removed. (For a list, search for DEPRECATED in that file.)

@mpg mpg added enhancement good-first-issue Good for newcomers mbedtls-3 size-s Estimated task size: small (~2d) labels Apr 1, 2021
@mpg
Copy link
Contributor Author

mpg commented Apr 1, 2021

@gilles-peskine-arm Can you double-check that this makes sense? Also, I see that scripts/generate_psa_constant.py has provisions for skipping deprecated constants - can these be removed once the deprecated things in psa/crypto_compat.h or should support remain in the script?

@gilles-peskine-arm
Copy link
Contributor

Yes, we should remove everything from crypto_compat.h in 3.0. We might as well remove that header file altogether.

There are two kinds of things in crypto_compat.h: old constants, and support for open/close.

Old constants can just go away, removing any reference to them in tests.

Removing open/close means removing more tests and code and there's a requested feature (#4218) that may reuse some of the code that's currently specific to open/close, so I suggest deferring that: just remove the declarations of psa_open_key and psa_close_key and supporting macros/funtions from public APIs, but keep the code and tests until after the 3.0 release.

I recommend not touching generate_psa_constants.py. I'm heavily refactoring it as part of my work to generate test cases for storage format stability; the code is now in scripts/mbedtls_dev/macro_collector.py, and it's just 3 lines of code: not worth the trouble of merge conflicts.

@TRodziewicz
Copy link
Contributor

The issue has been fixed by: "Remove deprecated things from crypto_compat.h and dependent tests. #4344" so I'm closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good-first-issue Good for newcomers size-s Estimated task size: small (~2d)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants