Skip to main content

Module globalid

Module globalid 

Source
Expand description

Manager-global identifiers, for things that need to be identified outside the scope of a single RPC connection.

We expect to use this code to identify TorClients and similar objects that can be passed as the target of a SOCKS request. Since the SOCKS request is not part of the RPC session, we need a way for it to refer to these objects.

Re-exportsยง

use rand::RngExt; ๐Ÿ”’
use tor_bytes::Reader; ๐Ÿ”’
use tor_llcrypto::util::ct::CtByteArray; ๐Ÿ”’
use tor_rpcbase::LookupError; ๐Ÿ”’
use tor_rpcbase::ObjectId; ๐Ÿ”’
use zeroize::Zeroizing; ๐Ÿ”’
use crate::connection::ConnectionId; ๐Ÿ”’
use crate::objmap::GenIdx; ๐Ÿ”’

Structsยง

GlobalId ๐Ÿ”’
A RpcMgr-scoped identifier for an RPC object.
MacKey ๐Ÿ”’
An key that we use to compute message authentication codes (MACs) for our GlobalIds

Constantsยง

MAC_KEY_LEN ๐Ÿ”’
The number of bytes in our MacKey.
MAC_LEN ๐Ÿ”’
The number of bytes in a Mac.

Type Aliasesยง

Mac ๐Ÿ”’
A message authentication code produced by MacKey::mac.