libosmogsm 1.11.0.26-c59d.202505152026
Osmocom GSM library
|
Functions | |
static | LLIST_HEAD (gprs_ciphers) |
int | gprs_cipher_register (struct gprs_cipher_impl *ciph) |
int | gprs_cipher_load (const char *path) |
int | gprs_cipher_run (uint8_t *out, uint16_t len, enum gprs_ciph_algo algo, uint8_t *kc, uint32_t iv, enum gprs_cipher_direction dir) |
unsigned | gprs_cipher_key_length (enum gprs_ciph_algo algo) |
Obtain key lenght for given GPRS cipher. | |
int | gprs_cipher_supported (enum gprs_ciph_algo algo) |
uint32_t | gprs_cipher_gen_input_ui (uint32_t iov_ui, uint8_t sapi, uint32_t lfn, uint32_t oc) |
uint32_t | gprs_cipher_gen_input_i (uint32_t iov_i, uint32_t lfn, uint32_t oc) |
static | __attribute__ ((constructor)) |
|
static |
References __attribute__, gea3_impl, gea4_impl, and gprs_cipher_register().
unsigned gprs_cipher_key_length | ( | enum gprs_ciph_algo | algo | ) |
Obtain key lenght for given GPRS cipher.
[in] | algo | Enum representive GPRS cipher |
References GPRS_ALGO_GEA0, GPRS_ALGO_GEA1, GPRS_ALGO_GEA2, GPRS_ALGO_GEA3, and GPRS_ALGO_GEA4.
Referenced by gea3().
References osmo_plugin_load_all().
int gprs_cipher_register | ( | struct gprs_cipher_impl * | ciph | ) |
References gprs_cipher_impl::algo, ARRAY_SIZE, gprs_cipher_impl::list, gprs_cipher_impl::priority, and selected_ciphers.
Referenced by __attribute__().
int gprs_cipher_run | ( | uint8_t * | out, |
uint16_t | len, | ||
enum gprs_ciph_algo | algo, | ||
uint8_t * | kc, | ||
uint32_t | iv, | ||
enum gprs_cipher_direction | dir | ||
) |
References ARRAY_SIZE, GSM0464_CIPH_MAX_BLOCK, len, gprs_cipher_impl::run, and selected_ciphers.
int gprs_cipher_supported | ( | enum gprs_ciph_algo | algo | ) |
References ARRAY_SIZE, and selected_ciphers.
|
static |
References LLIST_HEAD().
|
static |
Referenced by __attribute__().
|
static |
Referenced by __attribute__().
const struct value_string gprs_cipher_names[] |
|
static |
Referenced by gprs_cipher_register(), gprs_cipher_run(), and gprs_cipher_supported().