Measures the kernel command line by converting to UTF-16LE and hashing.
(cmdline: &str)
| 232 | |
| 233 | /// Measures the kernel command line by converting to UTF-16LE and hashing. |
| 234 | pub(crate) fn measure_cmdline(cmdline: &str) -> Vec<u8> { |
| 235 | let mut utf16_cmdline = utf16_encode(cmdline); |
| 236 | utf16_cmdline.extend([0, 0]); |
| 237 | measure_sha384(&utf16_cmdline) |
| 238 | } |
nothing calls this directly
no test coverage detected