MCPcopy Create free account

hub / github.com/conradludgate/rustyguard / functions

Functions305 in github.com/conradludgate/rustyguard

↓ 25 callersMethodexec
Run a command inside the VM. `root` runs via the backend's sudo path.
tests/e2e/rustyguard_e2e/provider.py:61
↓ 15 callersMethodrecv_message
Given a packet, and the socket addr it was received from, it will be parsed, processed, decrypted and the payload returned. The buffer the packet is
rustyguard-core/src/lib.rs:605
↓ 12 callersMethodget_mut
(&mut self, index: PeerId)
rustyguard-core/src/lib.rs:117
↓ 12 callersMethodparse
()
rustyguard-tun/src/lib.rs:49
↓ 11 callersMethodas_ptr
# Safety Get a generic pointer to the `SockAddr`.
rustyguard-tun/src/tun/platform/posix/sockaddr.rs:28
↓ 10 callersMethoddata
(&self)
rustyguard-core/src/lib.rs:481
↓ 8 callersMethodas_raw_fd
(&self)
rustyguard-tun/src/tun/platform/macos/device.rs:275
↓ 7 callersMethodas_raw_fd
(&self)
rustyguard-tun/src/tun/platform/linux/device.rs:259
↓ 7 callersMethodsend_message
( &mut self, peer_idx: PeerId, payload: &mut [u8], )
rustyguard-core/src/lib.rs:542
↓ 7 callersMethodsplit
( &mut self, initiator: bool, )
rustyguard-crypto/src/prim.rs:299
↓ 6 callersMethodas_ref
(&self)
rustyguard-core/examples/server.rs:246
↓ 6 callersFunctiongen_sk
(r: &mut impl Rng)
rustyguard-core/src/lib.rs:700
↓ 6 callersMethodinsert_peer
Adds a new peer to this wireguard config.
rustyguard-core/src/lib.rs:134
↓ 6 callersMethodrequest
Prepare a new request. # Safety
rustyguard-tun/src/tun/platform/macos/device.rs:116
↓ 6 callersMethodrequest
Prepare a new request.
rustyguard-tun/src/tun/platform/linux/device.rs:95
↓ 5 callersMethodencrypt
Returns `None` if the session has been removed/rotated or has already crossed REJECT_AFTER_{MESSAGES,TIME} since the encrypter was issued.
rustyguard-core/src/lib.rs:308
↓ 5 callersMethodkey
(&self)
rustyguard-tun/src/lib.rs:112
↓ 5 callersMethodnew_cookie
(&self, addr: SocketAddr)
rustyguard-crypto/src/lib.rs:95
↓ 4 callersMethodcounter
(&self)
rustyguard-crypto/src/prim.rs:396
↓ 4 callersMethoddata_mut
(&mut self)
rustyguard-core/examples/server.rs:240
↓ 4 callersFunctionencrypt_handshake_init
( hs: &mut HandshakeState, initiator: &StaticInitiatorConfig, peer: &StaticPeerConfig, esk_i:
rustyguard-crypto/src/lib.rs:287
↓ 4 callersFunctiongen_sk
(r: &mut StdRng)
rustyguard-crypto/src/lib.rs:488
↓ 4 callersFunctionsession_with_peer
( secret_key: StaticPrivateKey, peer_public_key: PublicKey, preshared_key: Key,
rustyguard-core/src/lib.rs:706
↓ 4 callersMethodverify_mac1
(&self, mac1_key: &Key)
rustyguard-crypto/src/lib.rs:142
↓ 4 callersMethodverify_mac2
(&self, cookie: &Cookie)
rustyguard-crypto/src/lib.rs:153
↓ 3 callersMethod_info
(self, vm: str)
tests/e2e/rustyguard_e2e/providers/multipass.py:45
↓ 3 callersMethod_instances
(self)
tests/e2e/rustyguard_e2e/providers/lima.py:73
↓ 3 callersMethodbuild
(self)
rustyguard-tun/src/lib.rs:128
↓ 3 callersMethodcopy_in
Copy a host file into the VM.
tests/e2e/rustyguard_e2e/provider.py:73
↓ 3 callersMethodcount
Count the packet, return the number of packets seen.
rustyguard-utils/src/rate_limiter.rs:74
↓ 3 callersMethoddata
(&self)
rustyguard-core/examples/server.rs:236
↓ 3 callersFunctiondecrypt_handshake_init
( init: &'m mut HandshakeInit, hs: &mut HandshakeState, receiver: &StaticInitiatorConfig, )
rustyguard-crypto/src/lib.rs:346
↓ 3 callersFunctionencrypt_handshake_resp
( hs: &mut HandshakeState, data: &DecryptedHandshakeInit, esk_r: &EphemeralPrivateKey, peer: &
rustyguard-crypto/src/lib.rs:386
↓ 3 callersMethodframe_in_place
Write the wireguard framing in place for the encrypted data packet. The data from `buffer[16..16+self.payload_len]` must contain the encrypted data.
rustyguard-core/src/lib.rs:463
↓ 3 callersMethodgenerate
(&mut self, rng: &mut impl CryptoRng)
rustyguard-crypto/src/lib.rs:91
↓ 3 callersFunctionhmac_inner
(ipad_key: &[u8; 64], opad_key: &[u8; 64], msg: [&[u8]; M])
rustyguard-crypto/src/prim.rs:61
↓ 3 callersMethodis_available
True iff this backend's CLI is installed and usable on the host.
tests/e2e/rustyguard_e2e/provider.py:41
↓ 3 callersMethodread
(&mut self, buf: &mut [u8])
rustyguard-tun/src/tun/platform/posix/fd.rs:29
↓ 3 callersMethodturn
Should be called at least once per second. Should be called until it returns None.
rustyguard-core/src/lib.rs:396
↓ 2 callersFunction_arch
()
tests/e2e/rustyguard_e2e/providers/lima.py:26
↓ 2 callersFunction_kill_iperf
(provider: Provider, vm: str)
tests/e2e/rustyguard_e2e/iperf.py:66
↓ 2 callersFunction_latest_handshake
Return the most recent handshake timestamp (unix seconds) on `vm`.
tests/e2e/tests/test_soak.py:54
↓ 2 callersMethod_machines
(self)
tests/e2e/rustyguard_e2e/providers/orb.py:44
↓ 2 callersFunction_ping
(provider: Provider, vm: str, target: str, count: int = 20)
tests/e2e/tests/test_handshake.py:9
↓ 2 callersFunction_wg_transfer
(provider: Provider, vm: str)
tests/e2e/tests/test_throughput.py:119
↓ 2 callersMethodaddress
An address (IP or DNS name) reachable from the *other* VM.
tests/e2e/rustyguard_e2e/provider.py:77
↓ 2 callersFunctionassert_af_header
Check that the first chunk of a packet to write has the correct AF_INET header
rustyguard-tun/src/tun/platform/macos/device.rs:311
↓ 2 callersMethodconfigure
Reconfigure the device.
rustyguard-tun/src/tun/device.rs:18
↓ 2 callersFunctioncookie_key
(spk: &[u8])
rustyguard-crypto/src/lib.rs:75
↓ 2 callersMethodcreate
Provision a VM. Idempotent: re-creating an existing VM is a no-op.
tests/e2e/rustyguard_e2e/provider.py:53
↓ 2 callersMethoddecrypt
( &mut self, counter: u64, payload_and_tag: &'b mut [u8], )
rustyguard-crypto/src/prim.rs:414
↓ 2 callersFunctiondecrypt_cookie
( cookie: &'c mut EncryptedCookie, key: &Key, nonce: &[u8; 24], aad: &[u8], )
rustyguard-crypto/src/lib.rs:50
↓ 2 callersFunctiondecrypt_handshake_resp
( resp: &mut HandshakeResp, hs: &mut HandshakeState, initiator: &StaticInitiatorConfig, peer:
rustyguard-crypto/src/lib.rs:435
↓ 2 callersMethoddelete
Tear down the VM. Idempotent.
tests/e2e/rustyguard_e2e/provider.py:81
↓ 2 callersMethodencrypt
(&mut self, payload: &mut [u8])
rustyguard-crypto/src/prim.rs:386
↓ 2 callersFunctionencrypt_cookie
(cookie: Cookie, key: &Key, nonce: &[u8; 24], aad: &[u8])
rustyguard-crypto/src/lib.rs:61
↓ 2 callersMethodencrypt_message
( &mut self, sessions: &mut SessionMap, payload: &mut [u8], now: Tai64N, )
rustyguard-core/src/lib.rs:249
↓ 2 callersMethodexec
( self, vm: str, cmd: list[str], *, root: bool = False, check:
tests/e2e/rustyguard_e2e/providers/lima.py:157
↓ 2 callersMethodforce_encrypt
( &mut self, session: &mut Session, payload: &mut [u8], now: Tai64N, )
rustyguard-core/src/lib.rs:267
↓ 2 callersFunctiongen_sk
(r: &mut ThreadRng)
rustyguard-crypto/benches/handshake.rs:14
↓ 2 callersFunctiongen_sk
(r: &mut ThreadRng)
rustyguard-core/benches/roundtrip.rs:31
↓ 2 callersFunctionget_pad
(key: &Key)
rustyguard-crypto/src/prim.rs:47
↓ 2 callersMethodinstall_packages
Install OS packages inside the guest, dispatching on guest OS.
tests/e2e/rustyguard_e2e/provider.py:84
↓ 2 callersMethodinto_address
(&self)
rustyguard-tun/src/tun/address.rs:14
↓ 2 callersFunctionmac1_key
(spk: &[u8])
rustyguard-crypto/src/lib.rs:72
↓ 2 callersMethodmark_seen
Record an authenticated counter. Must only be called after [`AntiReplay::would_accept`] returned true for the same `n`.
rustyguard-utils/src/anti_replay.rs:43
↓ 2 callersMethodnetmask
Set the netmask.
rustyguard-tun/src/tun/configuration.rs:27
↓ 2 callersFunctionnew_handshake
(sessions: &Sessions, peer_idx: PeerId)
rustyguard-core/src/handshake.rs:260
↓ 2 callersFunctionnonce
(counter: u64)
rustyguard-crypto/src/prim.rs:32
↓ 2 callersMethodoverloaded
(&mut self, ip: IpAddr)
rustyguard-core/src/lib.rs:508
↓ 2 callersMethodreset
(&mut self, rng: &mut dyn CryptoRng)
rustyguard-utils/src/rate_limiter.rs:86
↓ 2 callersFunctionsession_with_peer
( secret_key: StaticPrivateKey, peer_public_key: PublicKey, preshared_key: Key, endpoint: Sock
rustyguard-core/benches/roundtrip.rs:15
↓ 2 callersMethodshould_expire
(&self, now: Tai64N)
rustyguard-core/src/lib.rs:207
↓ 2 callersMethodshould_reject
(&self, now: Tai64N, ts: &SessionTransport)
rustyguard-core/src/lib.rs:204
↓ 2 callersMethodsupported_guest_os
Guest OSes this backend can provision on the current host.
tests/e2e/rustyguard_e2e/provider.py:45
↓ 2 callersMethodtimestamp
(&self)
rustyguard-crypto/src/lib.rs:282
↓ 2 callersMethodto
(&self)
rustyguard-core/src/lib.rs:478
↓ 2 callersMethodwould_accept
Would the counter `n` be accepted right now? Read-only. Per RFC 6479 §3.4.3, callers MUST gate AEAD decryption on this and only call [`AntiReplay::ma
rustyguard-utils/src/anti_replay.rs:25
↓ 2 callersMethodwrite
(&mut self, buf: &[u8])
rustyguard-tun/src/tun/platform/posix/fd.rs:57
↓ 2 callersMethodwrite_cookie_message
( &self, mac1: Mac, receiver: u32, cookie: Cookie, buf: &'b mut [u8],
rustyguard-core/src/lib.rs:518
↓ 2 callersFunctionwrite_msg
(buf: &'b mut [u8], t: &T)
rustyguard-core/src/lib.rs:501
↓ 2 callersMethodwrite_vectored
(&mut self, bufs: &[io::IoSlice<'_>])
rustyguard-tun/src/tun/platform/macos/device.rs:172
↓ 1 callersFunction_bring_up_kernel_peer
(provider: Provider, wg_conf: pathlib.Path)
tests/e2e/conftest.py:130
↓ 1 callersFunction_bring_up_rustyguard_peer
( provider: Provider, rg_conf: pathlib.Path, rg_os: GuestOS )
tests/e2e/conftest.py:138
↓ 1 callersMethod_darwin_address
(self, vm: str)
tests/e2e/rustyguard_e2e/providers/lima.py:206
↓ 1 callersMethod_enable_passwordless_sudo_darwin
Install a NOPASSWD sudoers entry for the default `lima` user. Lima's macOS template generates a random first-login password and stores
tests/e2e/rustyguard_e2e/providers/lima.py:120
↓ 1 callersFunction_find_utun_for_addr
Return the utun interface whose `inet` matches `addr`.
tests/e2e/conftest.py:196
↓ 1 callersFunction_host_target_triple
()
tests/e2e/rustyguard_e2e/build.py:19
↓ 1 callersFunction_install_darwin_allowed_ips_route
Install a /sbin/route entry for the WG peer on macOS. rustyguard-tun on macOS does not auto-install routes for AllowedIPs, so without this st
tests/e2e/conftest.py:174
↓ 1 callersMethod_linux_address
(self, vm: str)
tests/e2e/rustyguard_e2e/providers/lima.py:188
↓ 1 callersFunction_linux_target_triple
()
tests/e2e/rustyguard_e2e/providers/multipass.py:18
↓ 1 callersFunction_linux_target_triple
()
tests/e2e/rustyguard_e2e/providers/orb.py:17
↓ 1 callersFunction_teardown
(provider: Provider)
tests/e2e/conftest.py:260
↓ 1 callersFunction_wait_for_handshake
Trigger and observe a wg handshake from the kernel side.
tests/e2e/conftest.py:233
↓ 1 callersFunction_wait_for_tun_device
( provider: Provider, vm: str, vm_os: GuestOS, *, timeout: float = 15.0 )
tests/e2e/conftest.py:209
↓ 1 callersMethodaddress
Set the address.
rustyguard-tun/src/tun/configuration.rs:21
↓ 1 callersMethodcmp
(&self, other: &Self)
rustyguard-core/src/time.rs:28
↓ 1 callersFunctionconst_max
TODO: replace by max once const stable
rustyguard-tun/src/lib.rs:266
↓ 1 callersFunctioncreate
Create a TUN device with the given name.
rustyguard-tun/src/tun/platform/macos/mod.rs:12
↓ 1 callersFunctioncreate_as_async
Create a TUN device with the given name.
rustyguard-tun/src/tun/async/mod.rs:12
next →1–100 of 305, ranked by callers