MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / measure_sha384

Function measure_sha384

dstack-mr/src/util.rs:9–11  ·  view source on GitHub ↗

Computes a SHA384 hash of the given data.

(data: &[u8])

Source from the content-addressed store, hash-verified

7
8/// Computes a SHA384 hash of the given data.
9pub(crate) fn measure_sha384(data: &[u8]) -> Vec<u8> {
10 Sha384::new_with_prefix(data).finalize().to_vec()
11}
12
13pub(crate) fn utf16_encode(input: &str) -> Vec<u8> {
14 input

Callers 4

measure_tdx_efi_variableFunction · 0.85
rtmr0_logMethod · 0.85
measure_td_hobMethod · 0.85
measure_cmdlineFunction · 0.85

Calls 1

to_vecMethod · 0.80

Tested by

no test coverage detected