Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/akamai-contrib/byztimed
/ functions
Functions
215 in github.com/akamai-contrib/byztimed
⨍
Functions
215
◇
Types & classes
51
↓ 47 callers
Method
clone
(&self)
byztimed/src/logging.rs:104
↓ 38 callers
Method
as_ref
(&self)
byztimed/src/store.rs:559
↓ 26 callers
Method
serialize
(&self)
byztimed/src/store.rs:51
↓ 22 callers
Method
into
(self)
byztimed/src/config.rs:75
↓ 13 callers
Method
get
Returns the current clock era.
byztime/src/lib.rs:84
↓ 13 callers
Method
halve
Divides the timestamp by two.
byztime/src/lib.rs:422
↓ 11 callers
Method
as_mut_ptr
(&self)
byztime/src/lib.rs:738
↓ 9 callers
Function
watch
Spawn the provided task, then spawn another task that supervises its join handle and signals for shutdown if it errored or panicked
byztimed/src/main.rs:242
↓ 9 callers
Method
wrapping_add
Wrapping addition of timestamps. Computess `self` + `rhs`, wrapping around at the boundary of the type.
byztime/src/lib.rs:297
↓ 8 callers
Function
get_rkv_type
Silly helper function that really ought to already be in rkv
byztimed/src/store.rs:110
↓ 8 callers
Method
scale
Multiplies the timestamp by `ppb` parts per billion.
byztime/src/lib.rs:379
↓ 7 callers
Function
keygen
(rand: &mut R)
byztimed/src/aead.rs:47
↓ 7 callers
Method
offset
Returns an estimate of (global clock - our local clock) based on information from this peer
byztimed/src/core.rs:48
↓ 7 callers
Method
wrapping_sub
Wrapping subtraction of timestamps. Computess `self` - `rhs`, wrapping around at the boundary of the type.
byztime/src/lib.rs:304
↓ 6 callers
Function
make_ntske_error_response
(error: NtskeError)
byztimed/src/ntske.rs:380
↓ 6 callers
Method
saturating_sub
Saturating subtraction of timestamps. Computes `self` - `rhs`, saturating at numeric bounds instead of overflowing.
byztime/src/lib.rs:326
↓ 5 callers
Function
seal_cookie
Encrypt a cookie using the given master key
byztimed/src/cookie.rs:50
↓ 5 callers
Method
seconds
Return the seconds portion of the timestamp
byztime/src/lib.rs:104
↓ 4 callers
Method
as_ref
(&self)
byztimed/src/peer_name.rs:42
↓ 4 callers
Method
delete_if_present
( self, writer: &mut rkv::Writer<rkv::backend::LmdbRwTransaction>, k: K, )
byztimed/src/store.rs:70
↓ 4 callers
Method
get_cached_current_master_key
Look up the current master key and index from our cache
byztimed/src/store.rs:237
↓ 4 callers
Method
nanoseconds
Return the nanoseconds portion of the timestamp
byztime/src/lib.rs:109
↓ 4 callers
Function
serialize_cookies
(cookies: &[Vec<u8>])
byztimed/src/store.rs:56
↓ 3 callers
Method
appender
(&self, pattern: Option<&str>)
byztimed/src/logging.rs:79
↓ 3 callers
Method
filter
(&self)
byztimed/src/logging.rs:53
↓ 3 callers
Function
open_cookie
Decrypt a cookie, using the given callback to look up the master key by its ID.
byztimed/src/cookie.rs:22
↓ 3 callers
Method
overflowing_add
Calculates `self` + `rhs`. Returns a tuple of the addition along with a boolean indicating whether an arithmetic overflow occurred. If an overflow oc
byztime/src/lib.rs:258
↓ 3 callers
Method
overflowing_add_assign
(&mut self, other: Timestamp)
byztime/src/lib.rs:221
↓ 3 callers
Method
overflowing_normalize
Normalizes the timestamp such that 0 ≤ nanoseconds < 1_000_000_000. Returns a tuple of the normalized timestamp along with a boolean indicating wheth
byztime/src/lib.rs:143
↓ 3 callers
Method
overflowing_scale
Multiplies the timestamp by `ppb` parts per billion. Returns a tuple of the multiplication along with a boolean indicating whether an arithmetic over
byztime/src/lib.rs:373
↓ 3 callers
Method
overflowing_sub
Calculates `self` - `rhs`. Returns a tuple of the subtraction along with a boolean indicating whether an arithmetic overflow occurred. If an overflow
byztime/src/lib.rs:268
↓ 3 callers
Method
overflowing_sub_assign
(&mut self, other: Timestamp)
byztime/src/lib.rs:237
↓ 3 callers
Function
read_records_async
Asynchronously read and parse NTS-KE records from `stream`.
byztimed/src/ntske.rs:351
↓ 3 callers
Function
respond_to_time_request
Costruct a response to a time request Parses the request in `recv_buf` and places an appropriate response in `send_buf`. Returns as follows: `Ok(Ok((
byztimed/src/time_server.rs:248
↓ 3 callers
Method
saturating_normalize
Normalizes the timestamp such that 0 ≤ nanoseconds < 1_000_000_000.
byztime/src/lib.rs:172
↓ 3 callers
Function
serialize_time_request
( out: &mut Vec<u8>, unique_id: &core::UniqueId, c2s: &Aes128SivKey, cookie: Vec<u8>, cook
byztimed/src/time_client.rs:86
↓ 3 callers
Method
set_credentials
Set the C2S, S2C, and cookies for a peer, discarding any existing cookies
byztimed/src/store.rs:381
↓ 3 callers
Function
write_records_async
Asynchronously serialize and write `records` to `stream`.
byztimed/src/ntske.rs:336
↓ 2 callers
Method
append
(&self, pattern: Option<&str>)
byztimed/src/logging.rs:59
↓ 2 callers
Function
build_config
Build a log4rs config from a sequence of `LogConfig`s returned by the iterator
byztimed/src/logging.rs:115
↓ 2 callers
Method
checked_add
Checked addition of timestamps. Computes `self` + `rhs`, returning `None` if overflow occurred.
byztime/src/lib.rs:275
↓ 2 callers
Function
clone_target
log4rs is missing derived traits for Target, so we have to manually reimplement this.
byztimed/src/logging.rs:28
↓ 2 callers
Method
cmp
(&self, other: &Timestamp)
byztime/src/lib.rs:492
↓ 2 callers
Function
denormalize
(g: &mut G, t: Timestamp)
byztime/src/lib.rs:934
↓ 2 callers
Method
error
Returns the maximum absolute estimation error of local_offset. `drift_ppb`: Upper bound on rate of clock drift, in parts per billion `dist`: Lower bo
byztimed/src/core.rs:57
↓ 2 callers
Method
extend
Extend `v` with a serialized representation of this record.
byztimed/src/ntske.rs:289
↓ 2 callers
Function
extract_session_keys
Extract Byztime C2S and S2C keys from a TLS session.
byztimed/src/ntske.rs:520
↓ 2 callers
Function
find_ports
Find available ports to use for byztimed tests Returns a vector of `num_ports` port numbers that are available for both UDP and TCP. Every invocation
byztimed/tests/common/mod.rs:24
↓ 2 callers
Method
give_cookies
Insert the cookies for the given peer into the store, retaining up to a maximum of 16
byztimed/src/store.rs:473
↓ 2 callers
Function
handle_time_response
Process a time response Deserialize and decrypt the `response` using `secret_store` to look up keys. Pass the response to `core_state`. Add any retur
byztimed/src/time_client.rs:479
↓ 2 callers
Function
init_logging
Initialize logging
byztimed/src/logging.rs:132
↓ 2 callers
Function
interpret_ntske_response
Determine whether an NTS-KE response is well-formed and whether it communicates success or failure. If successful, return the provided cookies.
byztimed/src/ntske.rs:467
↓ 2 callers
Function
keygen_test
(rand: &mut R)
byztimed/src/aead.rs:54
↓ 2 callers
Method
lookup_peer
(&self, unique_id: &UniqueId)
byztimed/src/core.rs:220
↓ 2 callers
Function
make_ntske_request
()
byztimed/src/ntske.rs:372
↓ 2 callers
Function
make_tls_client_config
( authorities_path: &Authorities, section: Option<&PeerName>, errors: &mut Vec<SemanticError>, )
byztimed/src/config.rs:169
↓ 2 callers
Method
name
(&self)
byztimed/src/logging.rs:36
↓ 2 callers
Method
offset_quick
Returns the `offset` that was stored by the last call to [set_offset](Self::set_offset).
byztime/src/lib.rs:808
↓ 2 callers
Method
on_tick
Called at each polling interval for each peer, and returns a query to send to that peer. The caller is responsible for prompty transmitting the query
byztimed/src/core.rs:185
↓ 2 callers
Method
overflowing_normalize_assign
(&mut self)
byztime/src/lib.rs:113
↓ 2 callers
Method
overflowing_scale_assign
(&mut self, ppb: i64)
byztime/src/lib.rs:339
↓ 2 callers
Method
parse
Parse an NTS-KE record. `head` is the first four bytes of the record (containing record type and body length) `body is the rest.
byztimed/src/ntske.rs:195
↓ 2 callers
Function
parse_be_u16_vec
Parse a string of big-endian 16-bit unsigned integers.
byztimed/src/ntske.rs:178
↓ 2 callers
Method
record_number
Returns the record number indicating the type of this record.
byztimed/src/ntske.rs:243
↓ 2 callers
Function
reinit_logging
Reinitialize logging (useful for reopening log files after they've been rotated)
byztimed/src/logging.rs:140
↓ 2 callers
Function
respond_to_ntske_request
Construct a response appropriate to a given NTS-KE request.
byztimed/src/ntske.rs:385
↓ 2 callers
Function
run_four_node_local
(temp_dir: &path::Path)
byztimed/tests/4node_local.rs:153
↓ 2 callers
Function
run_one_node
(temp_dir: &path::Path)
byztimed/tests/1node.rs:49
↓ 2 callers
Method
saturating_add
Saturating addition of timestamps. Computes `self` + `rhs`, saturating at numeric bounds instead of overflowing.
byztime/src/lib.rs:311
↓ 2 callers
Function
shutdown_signal_task
SIGINT/SIGTERM handler
byztimed/src/main.rs:416
↓ 2 callers
Method
update_offset
Recompute our global offset estimate from newly-updated peer clocks.
byztimed/src/core.rs:342
↓ 2 callers
Method
wait_with_output
(mut self)
byztimed/tests/common/mod.rs:51
↓ 2 callers
Method
wrapping_scale
Multiplies the timestamp by `ppb` parts per billion, wrapping around at the limits of the type if overflow occurs.
byztime/src/lib.rs:402
↓ 1 callers
Function
async_main
()
byztimed/src/main.rs:104
↓ 1 callers
Method
body_length
Returns how long this record's body will be when serialized.
byztimed/src/ntske.rs:275
↓ 1 callers
Method
checked_sub
Checked subtractions of timestamps. Computes `self` - `rhs`, returning `None` if overflow occurred.
byztime/src/lib.rs:286
↓ 1 callers
Method
clear_peer
Clear all credentials for the peer
byztimed/src/store.rs:517
↓ 1 callers
Method
close
(mut self)
byztime/src/lib.rs:742
↓ 1 callers
Method
cmp
(&self, other: &PeerName)
byztimed/src/peer_name.rs:68
↓ 1 callers
Function
cook_config
Semantically validate a parsed configuration and fill in defaults
byztimed/src/config.rs:214
↓ 1 callers
Function
deserialize_request
Deserialize a time request Fully deserialize and decrypt `request`, using `get_master_key` to look up master keys by ID
byztimed/src/time_server.rs:92
↓ 1 callers
Function
deserialize_response_envelope
Deserialize a time response as far as the envelope, but don't try to decrypt it
byztimed/src/time_client.rs:409
↓ 1 callers
Function
deserialize_response_plaintext
Deserialize the plaintext of a time response, returning cookies and a [`core::Response`](../core/struct.Response.html).
byztimed/src/time_client.rs:444
↓ 1 callers
Method
get_c2s_key
Look up the C2S key for the given peer
byztimed/src/store.rs:355
↓ 1 callers
Method
get_cached_master_key
Look up the master key with the given index from the cache
byztimed/src/store.rs:243
↓ 1 callers
Method
get_master_key
Look up the master key with the given index, from cache if possible, otherwise from disk
byztimed/src/store.rs:256
↓ 1 callers
Method
get_s2c_key
Look up the S2C key for the given peer
byztimed/src/store.rs:413
↓ 1 callers
Function
global_time_assign
Look up the current global time and error bounds and store them into the provided references.
byztime/src/lib.rs:553
↓ 1 callers
Method
halve_assign
(&mut self)
byztime/src/lib.rs:414
↓ 1 callers
Method
is_critical
Return whether this record is critical, i.e., whether the receiver should treat it as an error if it's not understood rather than ignoring it. The arg
byztimed/src/ntske.rs:261
↓ 1 callers
Method
level
(&self)
byztimed/src/logging.rs:46
↓ 1 callers
Function
light_gigameter
The time that it takes for light to travel 10**9 meters through a vacuum
byztimed/src/core.rs:27
↓ 1 callers
Method
local_time_assign
(&mut self)
byztime/src/lib.rs:198
↓ 1 callers
Function
logrotate_signal_task
SIGHUP handler
byztimed/src/main.rs:430
↓ 1 callers
Method
normalize
Normalizes the timestamp such that 0 ≤ nanoseconds < 1_000_000_000.
byztime/src/lib.rs:128
↓ 1 callers
Function
ntske_server_task
Task for serving NTS-KE requests
byztimed/src/main.rs:291
↓ 1 callers
Function
offset_assign
Look up the current estimated offset (global clock - local clock) and error bounds and store them into the provided references.
byztime/src/lib.rs:523
↓ 1 callers
Method
offset_quick_assign
(&self, offset: &mut Timestamp)
byztime/src/lib.rs:800
↓ 1 callers
Method
offset_raw
Returns the `(offset, error, as_of)` tuple that was stored by the last call to [set_offset](Self::set_offset).
byztime/src/lib.rs:829
↓ 1 callers
Method
offset_raw_assign
( &self, offset: &mut Timestamp, error: &mut Timestamp, as_of: &mut Timestamp,
byztime/src/lib.rs:814
next →
1–100 of 215, ranked by callers