Expand description
Various helper functions, that are used by RADIUS Client & Server to encode/decode information inside RADIUS packet They are also available to crate users to prepare data before it is packed into RADIUS packet
Functionsยง
- bytes_
to_ integer - Converts integer bytes into u32
- bytes_
to_ integer64 - Converts integer64 bytes into u64
- bytes_
to_ interfaceid_ string - Converts ifid bytes into String
- bytes_
to_ ipv4_ string - Converts IPv4 bytes into IPv4 string
- bytes_
to_ ipv6_ string - Converts IPv6 bytes into IPv6 string
- bytes_
to_ timestamp - Converts date bytes into u32 (timestamp)
- decrypt_
data - Decrypts data since RADIUS packet is sent in plain text
- encrypt_
data - Encrypts data since RADIUS packet is sent in plain text
- integer64_
to_ bytes - Converts u64 into vector of bytes
- integer_
to_ bytes - Converts u32 into vector of bytes
- interfaceid_
string_ to_ bytes - Converts Ifid (Interface Id) string into vector of bytes
- ipv4_
string_ to_ bytes - Converts IPv4 Address string into vector of bytes
- ipv6_
string_ to_ bytes - Converts IPv6 Address string into vector of bytes
- salt_
decrypt_ data - Decrypts data with salt since RADIUS packet is sent in plain text
- salt_
encrypt_ data - Encrypts data with salt since RADIUS packet is sent in plain text
- timestamp_
to_ bytes - Converts timestamp (u32) into vector of bytes