/system/keymint/boringssl/src/ |
D | err.rs | 3 use bssl_ffi as ffi; 13 ffi::ERR_GET_REASON_RUST(code) in map_openssl_err() 18 ffi::ERR_R_MALLOC_FAILURE => return ErrorCode::MemoryAllocationFailed, in map_openssl_err() 19 ffi::ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED in map_openssl_err() 20 | ffi::ERR_R_PASSED_NULL_PARAMETER in map_openssl_err() 21 | ffi::ERR_R_INTERNAL_ERROR in map_openssl_err() 22 | ffi::ERR_R_OVERFLOW => return ErrorCode::UnknownError, in map_openssl_err() 26 match ffi::ERR_GET_LIB(code) as u32 { in map_openssl_err() 27 ffi::ERR_LIB_USER => ErrorCode::try_from(reason).unwrap_or(ErrorCode::UnknownError), in map_openssl_err() 28 ffi::ERR_LIB_EVP => translate_evp_error(reason), in map_openssl_err() [all …]
|
D | hmac.rs | 5 use bssl_ffi as ffi; 23 ffi::HMAC_CTX_new() in begin() 39 ffi::HMAC_Init_ex( in begin() 62 ctx: *mut ffi::HMAC_CTX, 70 ffi::HMAC_CTX_free(self.ctx); in drop() 79 ffi::HMAC_Update(self.ctx, data.as_ptr(), data.len()) in update() 88 let mut output_len = ffi::EVP_MAX_MD_SIZE as u32; in finish() 89 let mut output = vec_try![0; ffi::EVP_MAX_MD_SIZE as usize]?; in finish() 93 ffi::HMAC_Final(self.ctx, output.as_mut_ptr(), &mut output_len as *mut u32) in finish() 104 fn digest_into_openssl_ffi(digest: Digest) -> Result<*const ffi::EVP_MD, Error> { in digest_into_openssl_ffi() [all …]
|
D | aes_cmac.rs | 4 use bssl_ffi as ffi; 20 crypto::aes::Key::Aes128(k) => (ffi::EVP_aes_128_cbc(), &k[..]), in begin() 21 crypto::aes::Key::Aes192(k) => (ffi::EVP_aes_192_cbc(), &k[..]), in begin() 22 crypto::aes::Key::Aes256(k) => (ffi::EVP_aes_256_cbc(), &k[..]), in begin() 29 ffi::CMAC_CTX_new() in begin() 39 ffi::CMAC_Init( in begin() 62 ctx: *mut ffi::CMAC_CTX, 70 ffi::CMAC_CTX_free(self.ctx); in drop() 79 ffi::CMAC_Update(self.ctx, data.as_ptr(), data.len()) in update() 92 ffi::CMAC_Final(self.ctx, output.as_mut_ptr(), &mut output_len as *mut usize) in finish()
|
D | rng.rs | 2 use bssl_ffi as ffi; 14 ffi::RAND_seed(data.as_ptr() as *const libc::c_void, data.len() as libc::c_int); in add_entropy() 19 ffi::RAND_add( in add_entropy()
|
D | rsa.rs | 5 use bssl_ffi as ffi; 27 ffi::init(); in default() 178 md_ctx: *mut ffi::EVP_MD_CTX, 179 pctx: *mut ffi::EVP_PKEY_CTX, 186 ffi::EVP_MD_CTX_free(self.md_ctx); in drop() 204 md_ctx: cvt_p(ffi::EVP_MD_CTX_new())?, in new() 209 let r = ffi::EVP_DigestSignInit( in new() 224 cvt(ffi::EVP_PKEY_CTX_set_rsa_padding(op.pctx, padding.as_raw()))?; in new() 229 cvt(ffi::EVP_PKEY_CTX_set_rsa_pss_saltlen(op.pctx, digest_len))?; in new() 242 cvt(ffi::EVP_DigestUpdate(self.md_ctx, data.as_ptr() as *const _, data.len()))?; in update() [all …]
|
D | ec.rs | 5 use bssl_ffi as ffi; 46 ffi::init(); in default() 217 if peer_key_data.len() != ffi::X25519_PUBLIC_VALUE_LEN as usize { in finish() 225 let mut sig = vec_try![0; ffi::X25519_SHARED_KEY_LEN as usize]?; in finish() 229 ffi::X25519(sig.as_mut_ptr(), &key.0 as *const u8, peer_key_data.as_ptr()) in finish() 252 md_ctx: *mut ffi::EVP_MD_CTX, 253 pctx: *mut ffi::EVP_PKEY_CTX, 262 ffi::EVP_MD_CTX_free(self.md_ctx); in drop() 276 md_ctx: cvt_p(ffi::EVP_MD_CTX_new())?, in new() 281 let r = ffi::EVP_DigestSignInit( in new() [all …]
|
/system/nfc/src/rust/hal/ |
D | hidl_hal.rs | 30 let (hal_open_evt_tx, hal_open_evt_rx) = oneshot::channel::<ffi::NfcStatus>(); in init() 31 let (hal_close_evt_tx, hal_close_evt_rx) = oneshot::channel::<ffi::NfcStatus>(); in init() 38 ffi::start_hal(); in init() 54 mod ffi { module 98 impl From<ffi::NfcStatus> for HalEventStatus { 99 fn from(ffi_nfc_status: ffi::NfcStatus) -> Self { in from() 101 ffi::NfcStatus::OK => HalEventStatus::Success, in from() 102 ffi::NfcStatus::FAILED => HalEventStatus::Failed, in from() 103 ffi::NfcStatus::ERR_TRANSPORT => HalEventStatus::TransportError, in from() 104 ffi::NfcStatus::ERR_CMD_TIMEOUT => HalEventStatus::Timeout, in from() [all …]
|
/system/security/keystore2/tests/ |
D | ffi_test_utils.rs | 18 mod ffi { module 39 if ffi::validateCertChain(cert_buf.to_vec(), cert_buf.len().try_into().unwrap(), true) { in validate_certchain() 46 fn get_result(result: ffi::CxxResult) -> Result<Vec<u8>, Error> { in get_result() 63 get_result(ffi::createWrappedKey( in create_wrapped_key() 79 get_result(ffi::buildAsn1DerEncodedWrappedKeyDescription()) in create_wrapped_key_additional_auth_data()
|
/system/core/debuggerd/rust/tombstoned_client/src/ |
D | lib.rs | 17 pub use ffi::DebuggerdDumpType; 67 if ffi::tombstoned_connect_files( in connect() 82 if ffi::tombstoned_notify_completion(self.tombstoned_socket.as_raw_fd()) { in notify_completion() 91 mod ffi { module
|
/system/extras/profcollectd/libprofcollectd/bindings/libflags/ |
D | lib.rs | 20 pub use ffi::GetServerConfigurableFlag; 23 mod ffi { module
|
/system/security/keystore2/src/vintf/ |
D | lib.rs | 18 mod ffi { module 33 pub use ffi::*;
|
/system/security/keystore2/src/crypto/ |
D | zvec.rs | 48 unsafe { mlock(b.as_ptr() as *const std::ffi::c_void, b.len()) }?; in new() 78 unsafe { munlock(self.elems.as_ptr() as *const std::ffi::c_void, self.elems.len()) } in drop() 133 unsafe { mlock(b.as_ptr() as *const std::ffi::c_void, b.len()) }?; in try_from()
|
/system/nfc/src/rust/ |
D | Android.bp | 96 srcs: ["hal/ffi/hidl.cc"], 97 local_include_dirs: ["hal/ffi"],
|
/system/security/keystore2/apc_compat/ |
D | apc_compat.rs | 30 use std::{ffi::CString, slice}; 161 data: cb_data_ptr as *mut std::ffi::c_void, in prompt_user_confirmation()
|
/system/keymint/boringssl/ |
D | Cargo.toml | 8 ffi = { package = "openssl-sys", version = "^0.9.75" }
|
/system/security/prng_seeder/src/ |
D | cutils_socket.rs | 15 use std::ffi::CString;
|
/system/librustutils/ |
D | sockets.rs | 17 use std::ffi::CString;
|
D | system_properties.rs | 22 ffi::{c_uint, c_void, CStr, CString}, 33 BadNameError(#[from] std::ffi::NulError),
|
/system/extras/simpleperf/rust/ |
D | lib.rs | 20 use std::ffi::CString;
|
/system/core/trusty/libtrusty-rs/src/ |
D | lib.rs | 64 use std::ffi::CString;
|
/system/security/diced/open_dice/src/ |
D | retry.rs | 26 use std::ffi::CStr;
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | IDeprecated.rs | 47 …fn dump(&self, _file: &std::fs::File, _args: &[&std::ffi::CStr]) -> std::result::Result<(), binder… in new_async_binder()
|
/system/security/diced/sample_inputs/src/ |
D | sample_inputs.rs | 26 use std::ffi::CStr;
|
/system/core/trusty/keymint/src/ |
D | keymint_hal_main.rs | 22 ffi::CString,
|
/system/logging/rust/ |
D | logger.rs | 19 use std::ffi::CString;
|