Add Blowfish support
This commit is contained in:
parent
e2331b29d3
commit
0081665339
|
|
@ -1445,6 +1445,10 @@ extern {
|
||||||
pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER;
|
pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER;
|
||||||
pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER;
|
pub fn EVP_aes_256_cfb128() -> *const EVP_CIPHER;
|
||||||
pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER;
|
pub fn EVP_aes_256_cfb8() -> *const EVP_CIPHER;
|
||||||
|
pub fn EVP_bf_cbc() -> *const EVP_CIPHER;
|
||||||
|
pub fn EVP_bf_ecb() -> *const EVP_CIPHER;
|
||||||
|
pub fn EVP_bf_cfb() -> *const EVP_CIPHER;
|
||||||
|
pub fn EVP_bf_ofb() -> *const EVP_CIPHER;
|
||||||
pub fn EVP_rc4() -> *const EVP_CIPHER;
|
pub fn EVP_rc4() -> *const EVP_CIPHER;
|
||||||
|
|
||||||
pub fn EVP_des_cbc() -> *const EVP_CIPHER;
|
pub fn EVP_des_cbc() -> *const EVP_CIPHER;
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,22 @@ impl Cipher {
|
||||||
unsafe { Cipher(ffi::EVP_aes_256_gcm()) }
|
unsafe { Cipher(ffi::EVP_aes_256_gcm()) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn bf_cbc() -> Cipher {
|
||||||
|
unsafe { Cipher(ffi::EVP_bf_cbc()) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn bf_ecb() -> Cipher {
|
||||||
|
unsafe { Cipher(ffi::EVP_bf_ecb()) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn bf_cfb() -> Cipher {
|
||||||
|
unsafe { Cipher(ffi::EVP_bf_cfb()) }
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn bf_ofb() -> Cipher {
|
||||||
|
unsafe { Cipher(ffi::EVP_bf_ofb()) }
|
||||||
|
}
|
||||||
|
|
||||||
pub fn des_cbc() -> Cipher {
|
pub fn des_cbc() -> Cipher {
|
||||||
unsafe { Cipher(ffi::EVP_des_cbc()) }
|
unsafe { Cipher(ffi::EVP_des_cbc()) }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue