Searched refs:from_bytes (Results 1 – 6 of 6) sorted by relevance
| /linux/rust/kernel/ |
| H A D | str.rs | 39 pub const fn from_bytes(bytes: &[u8]) -> &Self { in from_bytes() method 58 .map(Self::from_bytes) in strip_prefix() 150 BStr::from_bytes(&self.0[index]) in index() 156 BStr::from_bytes(self) in as_ref() 182 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes()); 378 BStr::from_bytes(self.to_bytes()) 502 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_debug() 504 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_"); in test_bstr_debug() 506 let others = BStr::from_bytes(b"\x01"); in test_bstr_debug() 508 let non_ascii = BStr::from_bytes( in test_bstr_debug() [all...] |
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 54 self.r = int.from_bytes(key[:16], byteorder='little') & rclamp 55 self.s = int.from_bytes(key[16:], byteorder='little') 61 c = int.from_bytes(chunk, byteorder='little') + 2**(8 * len(chunk)) 88 return Ghash.reflect_bits_in_bytes(int.from_bytes(data, byteorder='little')) 125 self.h = int.from_bytes(key, byteorder='little') 132 self.acc ^= int.from_bytes(data[i:i+16], byteorder='little') 260 return int.from_bytes(bytestr[pos//8 : pos//8 + length//8], byteorder='little')
|
| /linux/drivers/gpu/nova-core/gsp/ |
| H A D | fw.rs | |
| /linux/scripts/gdb/linux/ |
| H A D | pgtable.py | 88 data = int.from_bytes(
|
| /linux/tools/testing/selftests/net/openvswitch/ |
| H A D | ovs-dpctl.py | 1052 lambda x: int.from_bytes(x, "big"), 1059 lambda x: int.from_bytes(x, "big"), 1321 lambda x: int.from_bytes(x, "big"), 1328 lambda x: int.from_bytes(x, "big"), 1365 ("sll", "sll", macstr, lambda x: int.from_bytes(x, "big")), 1366 ("tll", "tll", macstr, lambda x: int.from_bytes(x, "big")),
|
| /linux/tools/testing/selftests/tpm2/ |
| H A D | tpm2.py | 745 pcrSelect = int.from_bytes(pcrSelect, byteorder='big')
|