summaryrefslogtreecommitdiff
path: root/openssl-sys/src/evp.rs
diff options
context:
space:
mode:
authorHenrik Böving <hargonix@gmail.com>2020-05-08 22:14:35 +0200
committerHenrik Böving <hargonix@gmail.com>2020-05-08 23:16:13 +0200
commit963e3994a59e9de36967177c4ebc063c33b91293 (patch)
treee6564db83dde48d81cfd879f7b81d00b0c2e28d0 /openssl-sys/src/evp.rs
parente446d819e32fb9e9e1debf645b7f741c125a76e5 (diff)
downloadrust-openssl-963e3994a59e9de36967177c4ebc063c33b91293.zip
Add support for AES-OCB mode
Diffstat (limited to 'openssl-sys/src/evp.rs')
-rw-r--r--openssl-sys/src/evp.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/openssl-sys/src/evp.rs b/openssl-sys/src/evp.rs
index b4e74c19..a727a25c 100644
--- a/openssl-sys/src/evp.rs
+++ b/openssl-sys/src/evp.rs
@@ -21,6 +21,12 @@ pub const EVP_CTRL_GCM_SET_IVLEN: c_int = 0x9;
pub const EVP_CTRL_GCM_GET_TAG: c_int = 0x10;
pub const EVP_CTRL_GCM_SET_TAG: c_int = 0x11;
+// Keeping above for backwards compatability
+pub const EVP_CTRL_AEAD_SET_IVLEN: c_int = EVP_CTRL_GCM_SET_IVLEN;
+pub const EVP_CTRL_AEAD_GET_TAG: c_int = EVP_CTRL_GCM_GET_TAG;
+pub const EVP_CTRL_AEAD_SET_TAG: c_int = EVP_CTRL_GCM_SET_TAG;
+
+
pub unsafe fn EVP_get_digestbynid(type_: c_int) -> *const EVP_MD {
EVP_get_digestbyname(OBJ_nid2sn(type_))
}
@@ -275,6 +281,7 @@ extern "C" {
pub fn EVP_aes_128_gcm() -> *const EVP_CIPHER;
pub fn EVP_aes_128_xts() -> *const EVP_CIPHER;
pub fn EVP_aes_128_ofb() -> *const EVP_CIPHER;
+ pub fn EVP_aes_128_ocb() -> *const EVP_CIPHER;
pub fn EVP_aes_192_ecb() -> *const EVP_CIPHER;
pub fn EVP_aes_192_cbc() -> *const EVP_CIPHER;
pub fn EVP_aes_192_cfb1() -> *const EVP_CIPHER;
@@ -284,6 +291,7 @@ extern "C" {
pub fn EVP_aes_192_ccm() -> *const EVP_CIPHER;
pub fn EVP_aes_192_gcm() -> *const EVP_CIPHER;
pub fn EVP_aes_192_ofb() -> *const EVP_CIPHER;
+ pub fn EVP_aes_192_ocb() -> *const EVP_CIPHER;
pub fn EVP_aes_256_ecb() -> *const EVP_CIPHER;
pub fn EVP_aes_256_cbc() -> *const EVP_CIPHER;
pub fn EVP_aes_256_cfb1() -> *const EVP_CIPHER;
@@ -294,6 +302,7 @@ extern "C" {
pub fn EVP_aes_256_gcm() -> *const EVP_CIPHER;
pub fn EVP_aes_256_xts() -> *const EVP_CIPHER;
pub fn EVP_aes_256_ofb() -> *const EVP_CIPHER;
+ pub fn EVP_aes_256_ocb() -> *const EVP_CIPHER;
#[cfg(ossl110)]
pub fn EVP_chacha20() -> *const ::EVP_CIPHER;
#[cfg(ossl110)]