Skip to content

chore: remove subtle feature #68

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

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

AaronFeickert
Copy link
Collaborator

@AaronFeickert AaronFeickert commented Mar 5, 2024

We currently use the core_hint_black_box feature from subtle, which uses a particular optimization barrier.

However, the standard library documentation cautions against the use of std::hint::black_box for cryptographic use. This has led subtle to remove it in an upcoming release, at which point the feature will do nothing.

This PR takes the proactive step of removing the feature. There is still an optimization barrier in place, which will become the default after the feature is deprecated.

@AaronFeickert AaronFeickert merged commit 54c97b1 into tari-project:main Mar 5, 2024
@AaronFeickert AaronFeickert deleted the subtle branch March 5, 2024 18:39
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.

1 participant