The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Common code used by multiple SIM algorithms. More...
Go to the source code of this file.
Functions | |
static uint64_t | uint48_from_buff (uint8_t const in[6]) |
Convert a 48bit big endian value into a unsigned 64bit integer. More... | |
static uint8_t * | uint48_to_buff (uint8_t out[static 6], uint64_t i) |
Copy a 48bit value from a 64bit integer into a uint8_t buff in big endian byte order. More... | |
Common code used by multiple SIM algorithms.
Definition in file common.h.
|
inlinestatic |
Copy a 48bit value from a 64bit integer into a uint8_t buff in big endian byte order.
There may be fast ways of doing this, but this is the correct way, and does not make assumptions about how integers are laid out in memory.
[out] | out | 6 byte butter to store value. |
[in] | i | integer value. |
Definition at line 37 of file common.h.