about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-06-16 05:08:13 +0000
committerbors <bors@rust-lang.org>2015-06-16 05:08:13 +0000
commitf6d53af85f600731bbf100147be69b18391ae784 (patch)
treec981dd385fdb5f3478a8923d6d9762b01ceb29c3
parentaf8a4a0805bb0449ed603ea2fd2f6f1ab0b9cbe7 (diff)
parent47f9a6b3a3c706b863849deb6122ecf49ef5f5e3 (diff)
downloadrust-f6d53af85f600731bbf100147be69b18391ae784.tar.gz
rust-f6d53af85f600731bbf100147be69b18391ae784.zip
Auto merge of #24719 - :patch-1, r=steveklabnik
-rw-r--r--src/librustc_back/sha2.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_back/sha2.rs b/src/librustc_back/sha2.rs
index 9ed827da8b2..efbd4c3ef5e 100644
--- a/src/librustc_back/sha2.rs
+++ b/src/librustc_back/sha2.rs
@@ -482,6 +482,7 @@ pub struct Sha256 {
 
 impl Sha256 {
     /// Construct a new instance of a SHA-256 digest.
+    /// Do not – under any circumstances – use this where timing attacks might be possible!
     pub fn new() -> Sha256 {
         Sha256 {
             engine: Engine256::new(&H256)