| 1 |
use libc::size_t; |
| 2 |
use std::ffi::{c_int, c_uchar, c_void}; |
| 3 |
|
| 4 |
use super::super::*; |
| 5 |
|
| 6 |
#[cfg(not(osslconf = "OPENSSL_NO_DEPRECATED_3_0"))] |
| 7 |
extern "C" { |
| 8 |
pub fn CMAC_CTX_new() -> *mut CMAC_CTX; |
| 9 |
pub fn CMAC_CTX_free(ctx: *mut CMAC_CTX); |
| 10 |
pub fn CMAC_Init( |
| 11 |
ctx: *mut CMAC_CTX, |
| 12 |
key: *const c_void, |
| 13 |
len: size_t, |
| 14 |
cipher: *const EVP_CIPHER, |
| 15 |
impl_: *mut ENGINE, |
| 16 |
) -> c_int; |
| 17 |
pub fn CMAC_Update(ctx: *mut CMAC_CTX, data: *const c_void, len: size_t) -> c_int; |
| 18 |
pub fn CMAC_Final(ctx: *mut CMAC_CTX, out: *mut c_uchar, len: *mut size_t) -> c_int; |
| 19 |
pub fn CMAC_CTX_copy(dst: *mut CMAC_CTX, src: *const CMAC_CTX) -> c_int; |
| 20 |
} |