Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Dstack-TEE/dstack
/ sha256
Function
sha256
dstack-util/src/main.rs:445–450 ·
view source on GitHub ↗
(data: &[u8])
Source
from the content-addressed store, hash-verified
443
}
444
445
fn sha256(data: &[u8]) -> [u8; 32] {
446
use sha2::Digest;
447
let mut sha256 = sha2::Sha256::new();
448
sha256.update(data);
449
sha256.finalize().into()
450
}
451
452
#[tokio::main]
453
async fn main() -> Result<()> {
Callers
1
make_app_keys
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected