summaryrefslogtreecommitdiffstats
path: root/vendor/openssl-sys/src/handwritten/cmac.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/openssl-sys/src/handwritten/cmac.rs')
-rw-r--r--vendor/openssl-sys/src/handwritten/cmac.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/openssl-sys/src/handwritten/cmac.rs b/vendor/openssl-sys/src/handwritten/cmac.rs
new file mode 100644
index 000000000..e44094d21
--- /dev/null
+++ b/vendor/openssl-sys/src/handwritten/cmac.rs
@@ -0,0 +1,18 @@
+use libc::*;
+
+use super::super::*;
+
+extern "C" {
+ pub fn CMAC_CTX_new() -> *mut CMAC_CTX;
+ pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX);
+ pub fn CMAC_Init(
+ ctx: *mut CMAC_CTX,
+ key: *const c_void,
+ len: size_t,
+ cipher: *const EVP_CIPHER,
+ impl_: *mut ENGINE,
+ ) -> c_int;
+ pub fn CMAC_Update(ctx: *mut CMAC_CTX, data: *const c_void, len: size_t) -> c_int;
+ pub fn CMAC_Final(ctx: *mut CMAC_CTX, out: *mut c_uchar, len: *mut size_t) -> c_int;
+ pub fn CMAC_CTX_copy(dst: *mut CMAC_CTX, src: *const CMAC_CTX) -> c_int;
+}