Loading openssl/src/cipher.rs +25 −0 Original line number Original line Diff line number Diff line Loading @@ -388,6 +388,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia128_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia192_cfb128() -> &'static CipherRef { pub fn camellia192_cfb128() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cfb128() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cfb128() as *mut _) } Loading @@ -398,6 +403,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia192_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia256_cfb128() -> &'static CipherRef { pub fn camellia256_cfb128() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cfb128() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cfb128() as *mut _) } Loading @@ -408,6 +418,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia256_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] pub fn cast5_cfb64() -> &'static CipherRef { pub fn cast5_cfb64() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cfb64() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cfb64() as *mut _) } Loading @@ -418,6 +433,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_cast5_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] pub fn cast5_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] pub fn idea_cfb64() -> &'static CipherRef { pub fn idea_cfb64() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_idea_cfb64() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_idea_cfb64() as *mut _) } Loading @@ -428,6 +448,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_idea_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_idea_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] pub fn idea_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_idea_cbc() as *mut _) } } #[cfg(all(ossl110, not(osslconf = "OPENSSL_NO_CHACHA")))] #[cfg(all(ossl110, not(osslconf = "OPENSSL_NO_CHACHA")))] pub fn chacha20() -> &'static CipherRef { pub fn chacha20() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_chacha20() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_chacha20() as *mut _) } Loading Loading
openssl/src/cipher.rs +25 −0 Original line number Original line Diff line number Diff line Loading @@ -388,6 +388,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia128_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_128_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia192_cfb128() -> &'static CipherRef { pub fn camellia192_cfb128() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cfb128() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cfb128() as *mut _) } Loading @@ -398,6 +403,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia192_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_192_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia256_cfb128() -> &'static CipherRef { pub fn camellia256_cfb128() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cfb128() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cfb128() as *mut _) } Loading @@ -408,6 +418,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAMELLIA"))] pub fn camellia256_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_camellia_256_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] pub fn cast5_cfb64() -> &'static CipherRef { pub fn cast5_cfb64() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cfb64() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cfb64() as *mut _) } Loading @@ -418,6 +433,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_cast5_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_CAST"))] pub fn cast5_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_cast5_cbc() as *mut _) } } #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] pub fn idea_cfb64() -> &'static CipherRef { pub fn idea_cfb64() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_idea_cfb64() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_idea_cfb64() as *mut _) } Loading @@ -428,6 +448,11 @@ impl Cipher { unsafe { CipherRef::from_ptr(ffi::EVP_idea_ecb() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_idea_ecb() as *mut _) } } } #[cfg(not(osslconf = "OPENSSL_NO_IDEA"))] pub fn idea_cbc() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_idea_cbc() as *mut _) } } #[cfg(all(ossl110, not(osslconf = "OPENSSL_NO_CHACHA")))] #[cfg(all(ossl110, not(osslconf = "OPENSSL_NO_CHACHA")))] pub fn chacha20() -> &'static CipherRef { pub fn chacha20() -> &'static CipherRef { unsafe { CipherRef::from_ptr(ffi::EVP_chacha20() as *mut _) } unsafe { CipherRef::from_ptr(ffi::EVP_chacha20() as *mut _) } Loading