We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6914d83 + f501775 commit 32e3207Copy full SHA for 32e3207
library/core/src/hint.rs
@@ -320,6 +320,10 @@ pub fn spin_loop() {
320
/// This also means that this function does not offer any guarantees for cryptographic or security
321
/// purposes.
322
///
323
+/// This limitation is not specific to `black_box`; there is no mechanism in the entire Rust
324
+/// language that can provide the guarantees required for constant-time cryptography.
325
+/// (There is also no such mechanism in LLVM, so the same is true for every other LLVM-based compiler.)
326
+///
327
/// </div>
328
329
/// [`std::convert::identity`]: crate::convert::identity
0 commit comments