Searched refs:from_bytes (Results 1 – 5 of 5) 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()); 375 BStr::from_bytes(self.to_bytes()) in as_ref() 486 let hello_world = BStr::from_bytes(b"hello, world!"); in test_bstr_display() 488 let escapes = BStr::from_bytes(b"_\t_\n_\r_\\_\'_\"_"); in test_bstr_display() 490 let others = BStr::from_bytes(b"\x01"); in test_bstr_display() 492 let non_ascii = BStr::from_bytes(b"d\xe9j\xe0 vu"); in test_bstr_display() [all …]
|
| /linux/scripts/crypto/ |
| H A D | gen-hash-testvecs.py | 36 self.r = int.from_bytes(key[:16], byteorder='little') & rclamp 37 self.s = int.from_bytes(key[16:], byteorder='little') 43 c = int.from_bytes(chunk, byteorder='little') + 2**(8 * len(chunk)) 61 self.h = int.from_bytes(key, byteorder='little') 68 self.acc ^= int.from_bytes(data[i:i+16], byteorder='little')
|
| /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')
|