MCPcopy Create free account

hub / github.com/akamai-contrib/byztimed / functions

Functions215 in github.com/akamai-contrib/byztimed

↓ 47 callersMethodclone
(&self)
byztimed/src/logging.rs:104
↓ 38 callersMethodas_ref
(&self)
byztimed/src/store.rs:559
↓ 26 callersMethodserialize
(&self)
byztimed/src/store.rs:51
↓ 22 callersMethodinto
(self)
byztimed/src/config.rs:75
↓ 13 callersMethodget
Returns the current clock era.
byztime/src/lib.rs:84
↓ 13 callersMethodhalve
Divides the timestamp by two.
byztime/src/lib.rs:422
↓ 11 callersMethodas_mut_ptr
(&self)
byztime/src/lib.rs:738
↓ 9 callersFunctionwatch
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 callersMethodwrapping_add
Wrapping addition of timestamps. Computess `self` + `rhs`, wrapping around at the boundary of the type.
byztime/src/lib.rs:297
↓ 8 callersFunctionget_rkv_type
Silly helper function that really ought to already be in rkv
byztimed/src/store.rs:110
↓ 8 callersMethodscale
Multiplies the timestamp by `ppb` parts per billion.
byztime/src/lib.rs:379
↓ 7 callersFunctionkeygen
(rand: &mut R)
byztimed/src/aead.rs:47
↓ 7 callersMethodoffset
Returns an estimate of (global clock - our local clock) based on information from this peer
byztimed/src/core.rs:48
↓ 7 callersMethodwrapping_sub
Wrapping subtraction of timestamps. Computess `self` - `rhs`, wrapping around at the boundary of the type.
byztime/src/lib.rs:304
↓ 6 callersFunctionmake_ntske_error_response
(error: NtskeError)
byztimed/src/ntske.rs:380
↓ 6 callersMethodsaturating_sub
Saturating subtraction of timestamps. Computes `self` - `rhs`, saturating at numeric bounds instead of overflowing.
byztime/src/lib.rs:326
↓ 5 callersFunctionseal_cookie
Encrypt a cookie using the given master key
byztimed/src/cookie.rs:50
↓ 5 callersMethodseconds
Return the seconds portion of the timestamp
byztime/src/lib.rs:104
↓ 4 callersMethodas_ref
(&self)
byztimed/src/peer_name.rs:42
↓ 4 callersMethoddelete_if_present
( self, writer: &mut rkv::Writer<rkv::backend::LmdbRwTransaction>, k: K, )
byztimed/src/store.rs:70
↓ 4 callersMethodget_cached_current_master_key
Look up the current master key and index from our cache
byztimed/src/store.rs:237
↓ 4 callersMethodnanoseconds
Return the nanoseconds portion of the timestamp
byztime/src/lib.rs:109
↓ 4 callersFunctionserialize_cookies
(cookies: &[Vec<u8>])
byztimed/src/store.rs:56
↓ 3 callersMethodappender
(&self, pattern: Option<&str>)
byztimed/src/logging.rs:79
↓ 3 callersMethodfilter
(&self)
byztimed/src/logging.rs:53
↓ 3 callersFunctionopen_cookie
Decrypt a cookie, using the given callback to look up the master key by its ID.
byztimed/src/cookie.rs:22
↓ 3 callersMethodoverflowing_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 callersMethodoverflowing_add_assign
(&mut self, other: Timestamp)
byztime/src/lib.rs:221
↓ 3 callersMethodoverflowing_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 callersMethodoverflowing_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 callersMethodoverflowing_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 callersMethodoverflowing_sub_assign
(&mut self, other: Timestamp)
byztime/src/lib.rs:237
↓ 3 callersFunctionread_records_async
Asynchronously read and parse NTS-KE records from `stream`.
byztimed/src/ntske.rs:351
↓ 3 callersFunctionrespond_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 callersMethodsaturating_normalize
Normalizes the timestamp such that 0 ≤ nanoseconds < 1_000_000_000.
byztime/src/lib.rs:172
↓ 3 callersFunctionserialize_time_request
( out: &mut Vec<u8>, unique_id: &core::UniqueId, c2s: &Aes128SivKey, cookie: Vec<u8>, cook
byztimed/src/time_client.rs:86
↓ 3 callersMethodset_credentials
Set the C2S, S2C, and cookies for a peer, discarding any existing cookies
byztimed/src/store.rs:381
↓ 3 callersFunctionwrite_records_async
Asynchronously serialize and write `records` to `stream`.
byztimed/src/ntske.rs:336
↓ 2 callersMethodappend
(&self, pattern: Option<&str>)
byztimed/src/logging.rs:59
↓ 2 callersFunctionbuild_config
Build a log4rs config from a sequence of `LogConfig`s returned by the iterator
byztimed/src/logging.rs:115
↓ 2 callersMethodchecked_add
Checked addition of timestamps. Computes `self` + `rhs`, returning `None` if overflow occurred.
byztime/src/lib.rs:275
↓ 2 callersFunctionclone_target
log4rs is missing derived traits for Target, so we have to manually reimplement this.
byztimed/src/logging.rs:28
↓ 2 callersMethodcmp
(&self, other: &Timestamp)
byztime/src/lib.rs:492
↓ 2 callersFunctiondenormalize
(g: &mut G, t: Timestamp)
byztime/src/lib.rs:934
↓ 2 callersMethoderror
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 callersMethodextend
Extend `v` with a serialized representation of this record.
byztimed/src/ntske.rs:289
↓ 2 callersFunctionextract_session_keys
Extract Byztime C2S and S2C keys from a TLS session.
byztimed/src/ntske.rs:520
↓ 2 callersFunctionfind_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 callersMethodgive_cookies
Insert the cookies for the given peer into the store, retaining up to a maximum of 16
byztimed/src/store.rs:473
↓ 2 callersFunctionhandle_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 callersFunctioninit_logging
Initialize logging
byztimed/src/logging.rs:132
↓ 2 callersFunctioninterpret_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 callersFunctionkeygen_test
(rand: &mut R)
byztimed/src/aead.rs:54
↓ 2 callersMethodlookup_peer
(&self, unique_id: &UniqueId)
byztimed/src/core.rs:220
↓ 2 callersFunctionmake_ntske_request
()
byztimed/src/ntske.rs:372
↓ 2 callersFunctionmake_tls_client_config
( authorities_path: &Authorities, section: Option<&PeerName>, errors: &mut Vec<SemanticError>, )
byztimed/src/config.rs:169
↓ 2 callersMethodname
(&self)
byztimed/src/logging.rs:36
↓ 2 callersMethodoffset_quick
Returns the `offset` that was stored by the last call to [set_offset](Self::set_offset).
byztime/src/lib.rs:808
↓ 2 callersMethodon_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 callersMethodoverflowing_normalize_assign
(&mut self)
byztime/src/lib.rs:113
↓ 2 callersMethodoverflowing_scale_assign
(&mut self, ppb: i64)
byztime/src/lib.rs:339
↓ 2 callersMethodparse
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 callersFunctionparse_be_u16_vec
Parse a string of big-endian 16-bit unsigned integers.
byztimed/src/ntske.rs:178
↓ 2 callersMethodrecord_number
Returns the record number indicating the type of this record.
byztimed/src/ntske.rs:243
↓ 2 callersFunctionreinit_logging
Reinitialize logging (useful for reopening log files after they've been rotated)
byztimed/src/logging.rs:140
↓ 2 callersFunctionrespond_to_ntske_request
Construct a response appropriate to a given NTS-KE request.
byztimed/src/ntske.rs:385
↓ 2 callersFunctionrun_four_node_local
(temp_dir: &path::Path)
byztimed/tests/4node_local.rs:153
↓ 2 callersFunctionrun_one_node
(temp_dir: &path::Path)
byztimed/tests/1node.rs:49
↓ 2 callersMethodsaturating_add
Saturating addition of timestamps. Computes `self` + `rhs`, saturating at numeric bounds instead of overflowing.
byztime/src/lib.rs:311
↓ 2 callersFunctionshutdown_signal_task
SIGINT/SIGTERM handler
byztimed/src/main.rs:416
↓ 2 callersMethodupdate_offset
Recompute our global offset estimate from newly-updated peer clocks.
byztimed/src/core.rs:342
↓ 2 callersMethodwait_with_output
(mut self)
byztimed/tests/common/mod.rs:51
↓ 2 callersMethodwrapping_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 callersFunctionasync_main
()
byztimed/src/main.rs:104
↓ 1 callersMethodbody_length
Returns how long this record's body will be when serialized.
byztimed/src/ntske.rs:275
↓ 1 callersMethodchecked_sub
Checked subtractions of timestamps. Computes `self` - `rhs`, returning `None` if overflow occurred.
byztime/src/lib.rs:286
↓ 1 callersMethodclear_peer
Clear all credentials for the peer
byztimed/src/store.rs:517
↓ 1 callersMethodclose
(mut self)
byztime/src/lib.rs:742
↓ 1 callersMethodcmp
(&self, other: &PeerName)
byztimed/src/peer_name.rs:68
↓ 1 callersFunctioncook_config
Semantically validate a parsed configuration and fill in defaults
byztimed/src/config.rs:214
↓ 1 callersFunctiondeserialize_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 callersFunctiondeserialize_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 callersFunctiondeserialize_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 callersMethodget_c2s_key
Look up the C2S key for the given peer
byztimed/src/store.rs:355
↓ 1 callersMethodget_cached_master_key
Look up the master key with the given index from the cache
byztimed/src/store.rs:243
↓ 1 callersMethodget_master_key
Look up the master key with the given index, from cache if possible, otherwise from disk
byztimed/src/store.rs:256
↓ 1 callersMethodget_s2c_key
Look up the S2C key for the given peer
byztimed/src/store.rs:413
↓ 1 callersFunctionglobal_time_assign
Look up the current global time and error bounds and store them into the provided references.
byztime/src/lib.rs:553
↓ 1 callersMethodhalve_assign
(&mut self)
byztime/src/lib.rs:414
↓ 1 callersMethodis_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 callersMethodlevel
(&self)
byztimed/src/logging.rs:46
↓ 1 callersFunctionlight_gigameter
The time that it takes for light to travel 10**9 meters through a vacuum
byztimed/src/core.rs:27
↓ 1 callersMethodlocal_time_assign
(&mut self)
byztime/src/lib.rs:198
↓ 1 callersFunctionlogrotate_signal_task
SIGHUP handler
byztimed/src/main.rs:430
↓ 1 callersMethodnormalize
Normalizes the timestamp such that 0 ≤ nanoseconds < 1_000_000_000.
byztime/src/lib.rs:128
↓ 1 callersFunctionntske_server_task
Task for serving NTS-KE requests
byztimed/src/main.rs:291
↓ 1 callersFunctionoffset_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 callersMethodoffset_quick_assign
(&self, offset: &mut Timestamp)
byztime/src/lib.rs:800
↓ 1 callersMethodoffset_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 callersMethodoffset_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