aboutsummaryrefslogtreecommitdiff
path: root/openssl-sys/src
diff options
context:
space:
mode:
authorTomoki Aonuma <[email protected]>2015-12-10 19:46:35 +0900
committerTomoki Aonuma <[email protected]>2015-12-10 20:29:52 +0900
commite9b8627af27b8e239d0008005bd67cc87de671b1 (patch)
treec42f5d76cc77f5fd4c2df9126e4e691773a778a9 /openssl-sys/src
parentMerge pull request #315 from operutka/master (diff)
downloadrust-openssl-e9b8627af27b8e239d0008005bd67cc87de671b1.tar.xz
rust-openssl-e9b8627af27b8e239d0008005bd67cc87de671b1.zip
Add PBKDF2-HMAC-SHA256 and -SHA512 functions
Diffstat (limited to 'openssl-sys/src')
-rw-r--r--openssl-sys/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs
index 0f40bfed..f9f47d5e 100644
--- a/openssl-sys/src/lib.rs
+++ b/openssl-sys/src/lib.rs
@@ -478,7 +478,10 @@ extern "C" {
salt: *const u8, saltlen: c_int,
iter: c_int, keylen: c_int,
out: *mut u8) -> c_int;
-
+ pub fn PKCS5_PBKDF2_HMAC(pass: *const u8, passlen: c_int,
+ salt: *const u8, saltlen: c_int,
+ iter: c_int, digest: *const EVP_MD, keylen: c_int,
+ out: *mut u8) -> c_int;
pub fn RAND_bytes(buf: *mut u8, num: c_int) -> c_int;