Module radius_rust::tools
source · 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§
- Converts integer bytes into u32
- Converts integer64 bytes into u64
- Converts ifid bytes into String
- Converts IPv4 bytes into IPv4 string
- Converts IPv6 bytes into IPv6 string
- Converts date bytes into u32 (timestamp)
- Decrypts data since RADIUS packet is sent in plain text
- Encrypts data since RADIUS packet is sent in plain text
- Converts u64 into vector of bytes
- Converts u32 into vector of bytes
- Converts Ifid (Interface Id) string into vector of bytes
- Converts IPv4 Address string into vector of bytes
- Converts IPv6 Address string into vector of bytes
- Decrypts data with salt since RADIUS packet is sent in plain text
- Encrypts data with salt since RADIUS packet is sent in plain text
- Converts timestamp (u32) into vector of bytes