about summary refs log tree commit diff
path: root/src/libstd/sha1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/sha1.rs')
-rw-r--r--src/libstd/sha1.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sha1.rs b/src/libstd/sha1.rs
index 20359782d96..c2599864c90 100644
--- a/src/libstd/sha1.rs
+++ b/src/libstd/sha1.rs
@@ -67,13 +67,13 @@ const k3: u32 = 0xCA62C1D6u32;
 /// Construct a `sha` object
 pub fn sha1() -> Sha1 {
     type Sha1State =
-        {h: ~[u32],
+        {h: ~[mut u32],
          mut len_low: u32,
          mut len_high: u32,
-         mut msg_block: ~[u8],
+         msg_block: ~[mut u8],
          mut msg_block_idx: uint,
          mut computed: bool,
-         work_buf: @~[u32]};
+         work_buf: @~[mut u32]};
 
     fn add_input(st: &Sha1State, msg: &[const u8]) {
         assert (!st.computed);