aboutsummaryrefslogtreecommitdiff
path: root/crypto/pkcs5.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/pkcs5.rs')
-rw-r--r--crypto/pkcs5.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/pkcs5.rs b/crypto/pkcs5.rs
index 4dec03f6..d50666a1 100644
--- a/crypto/pkcs5.rs
+++ b/crypto/pkcs5.rs
@@ -1,5 +1,5 @@
use std::libc::c_int;
-use std::vec;
+use std::slice;
#[link(name = "crypto")]
extern {
@@ -15,7 +15,7 @@ pub fn pbkdf2_hmac_sha1(pass: &str, salt: &[u8], iter: uint, keylen: uint) -> ~[
assert!(iter >= 1);
assert!(keylen >= 1);
- let mut out = vec::with_capacity(keylen);
+ let mut out = slice::with_capacity(keylen);
let r = PKCS5_PBKDF2_HMAC_SHA1(
pass.as_ptr(), pass.len() as c_int,