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
|
||||
script:
|
||||
- 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,
|
||||
vec::raw::to_ptr(key),
|
||||
key.as_ptr(),
|
||||
key.len() as libc::c_int,
|
||||
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!(); }
|
||||
});
|
||||
|
||||
unsafe { vec::raw::set_len(&mut out, keylen); }
|
||||
unsafe { out.set_len(keylen); }
|
||||
|
||||
out
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue