aboutsummaryrefslogtreecommitdiff
path: root/openssl/src/crypto/hmac.rs
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2015-02-20 13:43:12 -0800
committerSteven Fackler <[email protected]>2015-02-20 13:43:12 -0800
commitcf80af7d1fd2a83d2543288b4cae2556f358cf0d (patch)
tree6a9951abe98a6d8eabfbd1a5723ba561014e7491 /openssl/src/crypto/hmac.rs
parentFix warning (diff)
parentUpdate depreciated code (diff)
downloadrust-openssl-cf80af7d1fd2a83d2543288b4cae2556f358cf0d.tar.xz
rust-openssl-cf80af7d1fd2a83d2543288b4cae2556f358cf0d.zip
Merge pull request #166 from Ryman/master
Rustup
Diffstat (limited to 'openssl/src/crypto/hmac.rs')
-rw-r--r--openssl/src/crypto/hmac.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/openssl/src/crypto/hmac.rs b/openssl/src/crypto/hmac.rs
index b7d5df54..55007ceb 100644
--- a/openssl/src/crypto/hmac.rs
+++ b/openssl/src/crypto/hmac.rs
@@ -253,7 +253,7 @@ mod tests {
];
let mut h = HMAC::new(MD5, &*tests[0].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[i % 2];
test_hmac_recycle(&mut h, test);
}
@@ -351,7 +351,7 @@ mod tests {
];
let mut h = HMAC::new(SHA1, &*tests[0].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[i % 2];
test_hmac_recycle(&mut h, test);
}
@@ -382,7 +382,7 @@ mod tests {
// recycle test
let mut h = HMAC::new(ty, &*tests[5].0);
- for i in 0..100us {
+ for i in 0..100usize {
let test = &tests[4 + i % 2];
let tup = (test.0.clone(), test.1.clone(), results[4 + i % 2].clone());
test_hmac_recycle(&mut h, &tup);