Update to rust 0.9x-pre
This commit is contained in:
parent
4e0257ab59
commit
9dd1c622f4
|
|
@ -5,3 +5,4 @@ install:
|
||||||
- sudo apt-get install rust-nightly
|
- sudo apt-get install rust-nightly
|
||||||
script:
|
script:
|
||||||
- make all
|
- make all
|
||||||
|
- ./crypto
|
||||||
|
|
|
||||||
2
hmac.rs
2
hmac.rs
|
|
@ -56,7 +56,7 @@ pub fn HMAC(ht: HashType, key: ~[u8]) -> HMAC {
|
||||||
};
|
};
|
||||||
|
|
||||||
HMAC_CTX_init(&mut ctx,
|
HMAC_CTX_init(&mut ctx,
|
||||||
vec::raw::to_ptr(key),
|
key.as_ptr(),
|
||||||
key.len() as libc::c_int,
|
key.len() as libc::c_int,
|
||||||
evp);
|
evp);
|
||||||
|
|
||||||
|
|
|
||||||
2
pkcs5.rs
2
pkcs5.rs
|
|
@ -35,7 +35,7 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint,
|
||||||
if r != 1 as c_int { fail!(); }
|
if r != 1 as c_int { fail!(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
unsafe { vec::raw::set_len(&mut out, keylen); }
|
unsafe { out.set_len(keylen); }
|
||||||
|
|
||||||
out
|
out
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue