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

Method epoch

nodedb-wal/src/crypto.rs:205–207  ·  view source on GitHub ↗

The random epoch for this key instance.

(&self)

Source from the content-addressed store, hash-verified

203
204 /// The random epoch for this key instance.
205 pub fn epoch(&self) -> &[u8; 4] {
206 &self.epoch
207 }
208
209 /// Decrypt a payload. Input is ciphertext + auth_tag (16 bytes at end).
210 ///

Callers 15

encrypt_segment_envelopeFunction · 0.45
wrong_key_failsFunction · 0.45
wrong_lsn_failsFunction · 0.45
tampered_header_failsFunction · 0.45
empty_payloadFunction · 0.45
epoch_tamper_rejectedFunction · 0.45
set_encryption_ringMethod · 0.45
set_encryption_keyMethod · 0.45

Calls

no outgoing calls

Tested by 10

wrong_key_failsFunction · 0.36
wrong_lsn_failsFunction · 0.36
tampered_header_failsFunction · 0.36
empty_payloadFunction · 0.36
epoch_tamper_rejectedFunction · 0.36