MCPcopy Create free account
hub / github.com/RustCrypto/utils / secret_box_alloc_test

Function secret_box_alloc_test

zeroize/tests/alloc.rs:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44
45#[test]
46fn secret_box_alloc_test() {
47 let b1 = SecretBox::new([u128::MAX; 10]);
48 core::hint::black_box(&b1);
49 let b2 = SecretBox::new([u8::MAX; 160]);
50 core::hint::black_box(&b2);
51}
52
53struct ObserveSecretBox<S: Default>(Box<S>);
54

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected