Skip to content

Commit 47f9a6b

Browse files
committed
Add another security warning for using the SHA-2 implementation
1 parent 2a62242 commit 47f9a6b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_back/sha2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ pub struct Sha256 {
482482

483483
impl Sha256 {
484484
/// Construct a new instance of a SHA-256 digest.
485+
/// Do not – under any circumstances – use this where timing attacks might be possible!
485486
pub fn new() -> Sha256 {
486487
Sha256 {
487488
engine: Engine256::new(&H256)

0 commit comments

Comments
 (0)