///|
/// Protocol identification prologue defined by WireGuard specification ยง5.4.
pub const WG_CONSTRUCTION : String = "Noise_IKpsk2_25519_ChaChaPoly_BLAKE2s"
///|
/// WireGuard protocol identifier mixed into the initial Noise hash state.
pub const WG_IDENTIFIER : String = "WireGuard v1 zx2c4 Jason@zx2c4.com"
///|
/// Library semantic version string.
pub fn version() -> String {
"0.1.0"
}
///|
pub using @crypto {
blake2s,
blake2s_256,
chacha20_poly1305_open,
chacha20_poly1305_seal,
from_base64,
from_hex,
to_base64,
to_hex,
x25519_dh,
x25519_public_key,
xchacha20_poly1305_open,
xchacha20_poly1305_seal,
}
///|
pub using @packet {
type CookieReply,
type HandshakeInitiation,
type HandshakeResponse,
type IpAddr,
type TransportData,
type WirePacket,
build_ipv4_icmp_echo,
describe_inner_ip,
inspect_and_trim_inner_ip,
parse_ip_addr,
parse_wire_packet,
}
///|
pub using @replay {type ReplayWindow}
///|
pub using @routing {type Cidr, type RoutingTable, parse_cidr}
///|
pub using @config {
type AuditReport,
type WgConfig,
audit_wg_config,
parse_wg_config,
}
///|
pub using @protocol {
type CookieValidator,
type Device,
type PeerTunnel,
type Tai64n,
type TunnelAction,
}
///|
pub using @pcap {
type CaptureAuditSummary,
type KeyLog,
build_ipv4_udp_pcap,
format_wireshark_keylog,
inspect_wireguard_pcap,
parse_keylog,
}