Skip to content

Commit

Permalink
Add another security warning for using the SHA-2 implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
genodeftest committed Apr 23, 2015
1 parent 2a62242 commit 47f9a6b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_back/sha2.rs
Expand Up @@ -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)
Expand Down

0 comments on commit 47f9a6b

Please sign in to comment.