Loading .travis.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ install: - sudo apt-get install rust-nightly script: - make all - ./crypto hmac.rs +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading pkcs5.rs +1 −1 Original line number Diff line number Diff line Loading @@ -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 rand.rs +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ pub fn rand_bytes(len: uint) -> ~[u8] { if r != 1 as c_int { fail!() } }); unsafe { vec::raw::set_len(&mut out, len); } unsafe { out.set_len(len); } out } Loading Loading
.travis.yml +1 −0 Original line number Diff line number Diff line Loading @@ -5,3 +5,4 @@ install: - sudo apt-get install rust-nightly script: - make all - ./crypto
hmac.rs +1 −1 Original line number Diff line number Diff line Loading @@ -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); Loading
pkcs5.rs +1 −1 Original line number Diff line number Diff line Loading @@ -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
rand.rs +1 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,7 @@ pub fn rand_bytes(len: uint) -> ~[u8] { if r != 1 as c_int { fail!() } }); unsafe { vec::raw::set_len(&mut out, len); } unsafe { out.set_len(len); } out } Loading