MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / test_key

Function test_key

nodedb-wal/src/crypto.rs:461–463  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 use super::*;
460
461 fn test_key() -> WalEncryptionKey {
462 WalEncryptionKey::from_bytes(&[0x42u8; 32]).unwrap()
463 }
464
465 fn test_header(lsn: u64) -> [u8; HEADER_SIZE] {
466 let mut h = [0u8; HEADER_SIZE];

Callers 6

wrong_lsn_failsFunction · 0.70
tampered_header_failsFunction · 0.70
empty_payloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected