Skip to content

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