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ยง
- Global
Id ๐ - 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.