/mcuboot-latest/sim/simflash/src/ |
D | lib.rs | 30 pub type Result<T> = std::result::Result<T, FlashError>; typedef 55 fn erase(&mut self, offset: usize, len: usize) -> Result<()>; in erase() argument 56 fn write(&mut self, offset: usize, payload: &[u8]) -> Result<()>; in write() argument 57 fn read(&self, offset: usize, data: &mut [u8]) -> Result<()>; in read() argument 59 fn add_bad_region(&mut self, offset: usize, len: usize, rate: f32) -> Result<()>; in add_bad_region() argument 125 pub fn write_file<P: AsRef<Path>>(&self, path: P) -> Result<()> { in write_file() argument 152 fn erase(&mut self, offset: usize, len: usize) -> Result<()> { in erase() argument 182 fn write(&mut self, offset: usize, payload: &[u8]) -> Result<()> { in write() argument 220 fn read(&self, offset: usize, data: &mut [u8]) -> Result<()> { in read() argument 232 fn add_bad_region(&mut self, offset: usize, len: usize, rate: f32) -> Result<()> { in add_bad_region() argument [all …]
|
/mcuboot-latest/sim/src/ |
D | lib.rs | 81 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() argument 103 fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result { in expecting() argument 107 fn visit_u32<E>(self, n: u32) -> Result<Self::Value, E> in visit_u32() 121 fn deserialize<D>(d: D) -> Result<AlignArg, D::Error> in deserialize()
|
D | image.rs | 140 pub fn new(device: DeviceName, align: usize, erased_val: u8) -> Result<Self, String> { in new()
|
/mcuboot-latest/ptest/src/ |
D | main.rs | 36 type Result<T> = result::Result<T, failure::Error>; typedef 38 fn main() -> Result<()> { in main() 154 fn done(&mut self, fs: &FeatureSet, output: Result<TestResult>) { in done() 302 fn run(&self) -> Result<TestResult> { in run()
|
/mcuboot-latest/sim/mcuboot-sys/src/ |
D | c.rs | 134 pub fn rsa_oaep_encrypt(pubkey: &[u8], seckey: &[u8]) -> Result<[u8; 256], &'static str> { in rsa_oaep_encrypt() 146 pub fn kw_encrypt(kek: &[u8], seckey: &[u8], keylen: u32) -> Result<Vec<u8>, &'static str> { in kw_encrypt()
|
D | api.rs | 11 use simflash::{Result, Flash, FlashPtr}; 323 fn map_err(err: Result<()>) -> libc::c_int { in map_err()
|
/mcuboot-latest/ext/tinycrypt/tests/ |
D | test_ecc_dh.c | 399 char *Result[] = { in cavp_pkv() local 411 return pkv_vectors(x, y, Result, 12, verbose); in cavp_pkv()
|
D | test_ecc_dsa.c | 556 char *Result[] = { in cavp_verify() local 587 return vrfy_vectors(&sha256_ctx, Msg, Qx, Qy, R, S, Result, 15, verbose); in cavp_verify()
|
/mcuboot-latest/sim/mcuboot-sys/ |
D | build.rs | 489 fn walk_dir<P: AsRef<Path>>(path: P) -> io::Result<()> { in walk_dir() argument
|