/tools/security/remote_provisioning/hwtrust/cxxbridge/ |
D | lib.rs | 30 chain: Box<DiceChain>, field 39 fn verify_dice_chain(chain: &[u8], kind: DiceChainKind) -> VerifyDiceChainResult; in verify_dice_chain() 42 fn get_dice_chain_public_key(chain: &DiceChain, n: usize) -> Vec<u8>; in get_dice_chain_public_key() 45 fn is_dice_chain_proper(chain: &DiceChain) -> bool; in is_dice_chain_proper() 52 fn verify_dice_chain(chain: &[u8], kind: ffi::DiceChainKind) -> ffi::VerifyDiceChainResult { in verify_dice_chain() 62 chain: Box::new(DiceChain(None)), in verify_dice_chain() 68 match ChainForm::from_cbor(&session, chain) { in verify_dice_chain() 69 Ok(chain) => { in verify_dice_chain() 70 let len = match chain { in verify_dice_chain() 71 ChainForm::Proper(ref chain) => chain.payloads().len(), in verify_dice_chain() [all …]
|
D | hwtrust.cpp | 10 ::rust::Box<rust::DiceChain> chain; 16 DiceChain::DiceChain(std::unique_ptr<BoxedDiceChain> chain, size_t size) noexcept in DiceChain() argument 17 : chain_(std::move(chain)), size_(size) {} in DiceChain() 19 Result<DiceChain> DiceChain::Verify(const std::vector<uint8_t>& chain, DiceChain::Kind kind) noexce… in Verify() argument 35 auto res = rust::VerifyDiceChain({chain.data(), chain.size()}, chainKind); in Verify() 39 BoxedDiceChain boxedChain = { std::move(res.chain) }; in Verify() 47 auto key = rust::GetDiceChainPublicKey(*chain_->chain, i); in CosePublicKeys() 57 return rust::IsDiceChainProper(*chain_->chain); in IsProper()
|
/tools/security/remote_provisioning/hwtrust/src/cbor/dice/ |
D | chain.rs | 34 let chain = in from_value() localVariable 37 if root_public_key.pkey().public_eq(chain.public_key().pkey()) { in from_value() 38 return Ok(Self::Degenerate(chain)); in from_value() 130 let chain = fs::read("testdata/dice/valid_ed25519.chain").unwrap(); in chain_form_valid_proper() localVariable 132 let form = ChainForm::from_cbor(&session, &chain).unwrap(); in chain_form_valid_proper() 138 let chain = fs::read("testdata/dice/cf_degenerate.chain").unwrap(); in chain_form_valid_degenerate() localVariable 140 let form = ChainForm::from_cbor(&session, &chain).unwrap(); in chain_form_valid_degenerate() 146 let chain = fs::read("testdata/dice/valid_ed25519.chain").unwrap(); in check_chain_valid_ed25519() localVariable 148 let chain = Chain::from_cbor(&session, &chain).unwrap(); in check_chain_valid_ed25519() localVariable 149 assert_eq!(chain.payloads().len(), 8); in check_chain_valid_ed25519() [all …]
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | ClusterChainDirectory.java | 46 final ClusterChain chain; field in ClusterChainDirectory 48 protected ClusterChainDirectory(ClusterChain chain, boolean isRoot) { in ClusterChainDirectory() argument 50 super((int)(chain.getLengthOnDisk() / FatDirectoryEntry.SIZE), in ClusterChainDirectory() 51 chain.isReadOnly(), isRoot); in ClusterChainDirectory() 53 this.chain = chain; in ClusterChainDirectory() 57 ClusterChain chain) throws IOException { in readRoot() argument 60 new ClusterChainDirectory(chain, true); in readRoot() 88 this.chain.readData(0, data); in read() 94 chain.writeData(0, data); in write() 95 final long trueSize = chain.getLengthOnDisk(); in write() [all …]
|
D | ClusterChain.java | 145 final long[] chain = getFat().getChain(getStartCluster()); in getChainLength() local 146 return chain.length; in getChainLength() 164 final long[] chain = fat.allocNew(nrClusters); in setChainLength() local 165 this.startCluster = chain[0]; in setChainLength() 167 final long[] chain = fat.getChain(startCluster); in setChainLength() local 169 if (nrClusters != chain.length) { in setChainLength() 170 if (nrClusters > chain.length) { in setChainLength() 172 int count = nrClusters - chain.length; in setChainLength() 181 fat.setEof(chain[nrClusters - 1]); in setChainLength() 182 for (int i = nrClusters; i < chain.length; i++) { in setChainLength() [all …]
|
D | FatFile.java | 37 private final ClusterChain chain; field in FatFile 39 private FatFile(FatDirectoryEntry myEntry, ClusterChain chain) { in FatFile() argument 43 this.chain = chain; in FatFile() 91 chain.setSize(length); in setLength() 93 this.entry.setStartCluster(chain.getStartCluster()); in setLength() 126 chain.readData(offset, dest); in read() 157 chain.writeData(offset, srcBuf); in write() 192 return chain; in getChain() 204 ", first cluster=" + chain.getStartCluster() + "]"; in toString()
|
D | AbstractDirectory.java | 310 final ClusterChain chain = new ClusterChain(fat, false); in createSub() local 311 chain.setChainLength(1); in createSub() 314 entry.setStartCluster(chain.getStartCluster()); in createSub() 317 new ClusterChainDirectory(chain, false); in createSub()
|
D | Fat.java | 243 long[] chain = new long[count]; in getChain() local 244 chain[0] = startCluster; in getChain() 249 chain[++i] = cluster; in getChain() 251 return chain; in getChain()
|
D | FatLfnDirectory.java | 427 final ClusterChain chain = new ClusterChain( in read() local 432 new ClusterChainDirectory(chain, false); in read()
|
/tools/security/remote_provisioning/hwtrust/ |
D | README.md | 26 `hwtrust` can be used to validate that a DICE chain is well-formed and check 28 chain in a file, e.g. `chain.bin`, then call the tool. 31 hwtrust dice-chain chain.bin 34 The exit code is zero if the chain passed verification and non-zero otherwise. 39 a "CSR" that contains a full DICE chain and other device properties. The `factory-csr`
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/ |
D | brcm_utils.py | 398 def set_chain_mask(dut, chain): argument 399 if chain == '2x2': 400 chain = 3 402 chain = chain + 1 410 if curr_tx_chain == chain and curr_rx_chain == chain: 415 dut.adb.shell('wl txchain 0x{}'.format(chain)) 416 dut.adb.shell('wl rxchain 0x{}'.format(chain)) 425 if curr_tx_chain != chain or curr_rx_chain != chain:
|
D | __init__.py | 546 for idx, chain in enumerate(rf_map_by_network[net_id]): 547 if chain: 550 'dut_chain': chain
|
/tools/security/remote_provisioning/hwtrust/src/ |
D | main.rs | 49 chain: String, field 129 let chain = dice::ChainForm::from_cbor(&session, &fs::read(&sub_args.chain)?)?; in verify_dice_chain() localVariable 133 if let ChainForm::Degenerate(_) = chain { in verify_dice_chain()
|
D | dice.rs | 3 mod chain; module 7 pub use chain::{Chain, ChainForm, DegenerateChain};
|
/tools/security/remote_provisioning/hwtrust/src/rkp/ |
D | factory_csr.rs | 80 let chain = [ in from_json_valid_v2_ed25519() localVariable 102 let chain = chain in from_json_valid_v2_ed25519() localVariable 110 .insert("google-test".to_string(), UdsCertsEntry::new_x509_chain(chain).unwrap()); in from_json_valid_v2_ed25519()
|
D | protected_data.rs | 61 fn format_x509_chain(fmt: &mut fmt::Formatter, chain: &Vec<Vec<u8>>) -> fmt::Result { in format_x509_chain() 62 for c in chain { in format_x509_chain()
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiSensitivityTest.py | 625 for chain, rate in itertools.product(chain_mask, rates): 633 chain_mask=chain) 634 if chain in ['0', '1'] and rate[1] == 2: 642 rate.streams, chain)) 647 rate.streams, chain)) 884 for chain, mode in itertools.product(chain_mask, requested_modes): 904 chain_mask=chain, 908 if str(chain) in ['0', '1'] and rate[1] == 2: 916 rate.streams, chain, angle)) 921 rate.streams, chain, angle))
|
D | WifiRvrTest.py | 874 for channel, mode, chain, traffic_type, traffic_direction in itertools.product( 880 traffic_type, traffic_direction, channel, mode, chain) 887 chain=chain) 1162 for channel, mode, chain, angle, traffic_type, direction in itertools.product( 1168 traffic_type, direction, channel, mode, chain, angle) 1172 chain=chain,
|
/tools/security/remote_provisioning/hwtrust/cxxbridge/include/hwtrust/ |
D | hwtrust.h | 22 …static android::base::Result<DiceChain> Verify(const std::vector<uint8_t>& chain, DiceChain::Kind … 32 DiceChain(std::unique_ptr<BoxedDiceChain> chain, size_t size) noexcept;
|
/tools/netsim/rust/daemon/src/captures/ |
D | pcap_util.rs | 29 $( .chain($x.to_be_bytes()) )* 37 $( .chain($x.to_le_bytes()) )*
|
/tools/test/connectivity/acts/framework/acts/controllers/ap_lib/ |
D | hostapd_constants.py | 335 itertools.chain(range(6, 14), range(40, 65, 8), range(104, 145, 8), 339 itertools.chain(range(1, 8), range(36, 61, 8), range(100, 141, 8),
|
/tools/security/remote_provisioning/hwtrust/src/dice/ |
D | chain.rs | 40 Self::Proper(chain) => chain.leaf().subject_public_key(), in leaf_public_key()
|
/tools/asuite/adevice/src/ |
D | adevice.rs | 247 commands.upserts.clone().into_iter().chain(commands.deletes.clone()).collect(); in adevice() 325 ninja_installed_files.iter().map(PathBuf::from).chain(ninja_installed_dirs).collect(); in get_update_commands() 549 host_tree.keys().chain(device_tree.keys()).chain(tracked_set.iter()).collect(); in collect_status_per_file()
|
/tools/security/remote_provisioning/hwtrust/src/cbor/ |
D | dice.rs | 8 mod chain; module
|
/tools/netsim/doc/ |
D | CODING_STYLE.md | 11 1. Use `#pragma once` instead of #define guards. Netsim uses compiler tool chain from external/qemu…
|