osmo-gmr 0.2.104-2b98
Osmocom GMR-1
|
Files | |
file | a5.h |
Osmocom GMR-1 A5 ciphering algorithm header. | |
file | a5.c |
Osmocom GMR-1 A5 ciphering algorithm implementation. | |
Functions | |
void | gmr1_a5 (int n, uint8_t *key, uint32_t fn, int nbits, ubit_t *dl, ubit_t *ul) |
Main method to generate a A5/x cipher stream. More... | |
void | gmr1_a5_1 (uint8_t *key, uint32_t fn, int nbits, ubit_t *dl, ubit_t *ul) |
Generate a GMR-1 A5/1 cipher stream. More... | |
void gmr1_a5 | ( | int | n, |
uint8_t * | key, | ||
uint32_t | fn, | ||
int | nbits, | ||
ubit_t * | dl, | ||
ubit_t * | ul | ||
) |
Main method to generate a A5/x cipher stream.
[in] | n | Which A5/x method to use |
[in] | key | 8 byte array for the key (as received from the SIM) |
[in] | fn | Frame number |
[in] | nbits | How many bits to generate |
[out] | dl | Pointer to array of ubits to return Downlink cipher stream |
[out] | ul | Pointer to array of ubits to return Uplink cipher stream |
Currently only A5/0 and A5/1. Either (or both) of dl/ul can be NULL if not needed.
References gmr1_a5_1().
void gmr1_a5_1 | ( | uint8_t * | key, |
uint32_t | fn, | ||
int | nbits, | ||
ubit_t * | dl, | ||
ubit_t * | ul | ||
) |
Generate a GMR-1 A5/1 cipher stream.
[in] | key | 8 byte array for the key (as received from the SIM) |
[in] | fn | Frame number |
[in] | nbits | How many bits to generate |
[out] | dl | Pointer to array of ubits to return Downlink cipher stream |
[out] | ul | Pointer to array of ubits to return Uplink cipher stream |
Either (or both) of dl/ul can be NULL if not needed.
Referenced by gmr1_a5().