diff options
| author | Steven Fackler <[email protected]> | 2015-08-23 13:37:55 -0400 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2015-08-23 13:37:55 -0400 |
| commit | dc8cba4822c17b13cc6af998d141854177ce4cf8 (patch) | |
| tree | cc4bbdaab2ae1d0bac09ec90ec79fd2f2ae481c3 /openssl-sys/src/lib.rs | |
| parent | Merge pull request #253 from manuels/master (diff) | |
| parent | Expose EVP_BytesToKey (diff) | |
| download | rust-openssl-dc8cba4822c17b13cc6af998d141854177ce4cf8.tar.xz rust-openssl-dc8cba4822c17b13cc6af998d141854177ce4cf8.zip | |
Merge pull request #251 from ebarnard/evp_bytestokey
Expose EVP_BytesToKey
Diffstat (limited to 'openssl-sys/src/lib.rs')
| -rw-r--r-- | openssl-sys/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index caebc35d..b3025be1 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -129,6 +129,8 @@ pub const MBSTRING_UTF8: c_int = MBSTRING_FLAG; pub const NID_ext_key_usage: c_int = 126; pub const NID_key_usage: c_int = 83; +pub const PKCS5_SALT_LEN: c_int = 8; + pub const SSL_CTRL_OPTIONS: c_int = 32; pub const SSL_CTRL_CLEAR_OPTIONS: c_int = 77; @@ -410,6 +412,10 @@ extern "C" { // fn EVP_aes_256_gcm() -> EVP_CIPHER; pub fn EVP_rc4() -> *const EVP_CIPHER; + pub fn EVP_BytesToKey(typ: *const EVP_CIPHER, md: *const EVP_MD, + salt: *const u8, data: *const u8, datalen: c_int, + count: c_int, key: *mut u8, iv: *mut u8) -> c_int; + pub fn EVP_CIPHER_CTX_new() -> *mut EVP_CIPHER_CTX; pub fn EVP_CIPHER_CTX_set_padding(ctx: *mut EVP_CIPHER_CTX, padding: c_int) -> c_int; pub fn EVP_CIPHER_CTX_free(ctx: *mut EVP_CIPHER_CTX); |