1 | use super::super::*; |
2 | use libc::*; |
3 | |
4 | cfg_if! { |
5 | if #[cfg(ossl300)] { |
6 | extern "C" { |
7 | pub fn EVP_PKEY_CTX_set_hkdf_mode(ctx: *mut EVP_PKEY_CTX, mode: c_int) -> c_int; |
8 | pub fn EVP_PKEY_CTX_set_hkdf_md(ctx: *mut EVP_PKEY_CTX, md: *const EVP_MD) -> c_int; |
9 | pub fn EVP_PKEY_CTX_set1_hkdf_salt( |
10 | ctx: *mut EVP_PKEY_CTX, |
11 | salt: *const u8, |
12 | saltlen: c_int, |
13 | ) -> c_int; |
14 | pub fn EVP_PKEY_CTX_set1_hkdf_key( |
15 | ctx: *mut EVP_PKEY_CTX, |
16 | key: *const u8, |
17 | keylen: c_int, |
18 | ) -> c_int; |
19 | pub fn EVP_PKEY_CTX_add1_hkdf_info( |
20 | ctx: *mut EVP_PKEY_CTX, |
21 | info: *const u8, |
22 | infolen: c_int, |
23 | ) -> c_int; |
24 | } |
25 | } |
26 | } |
27 | |