GNU Radio's GSM Package
GSM A5 ciphering algorithm

Files

file  a5.h
 

Functions

static uint32_t osmo_a5_fn_count (uint32_t fn)
 
int osmo_a5 (int n, const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul)
 
void osmo_a5_1 (const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) OSMO_DEPRECATED("Use generic osmo_a5() instead")
 
void osmo_a5_2 (const uint8_t *key, uint32_t fn, ubit_t *dl, ubit_t *ul) OSMO_DEPRECATED("Use generic osmo_a5() instead")
 

Detailed Description

Function Documentation

◆ osmo_a5()

int osmo_a5 ( int  n,
const uint8_t *  key,
uint32_t  fn,
ubit_t dl,
ubit_t ul 
)

◆ osmo_a5_1()

void osmo_a5_1 ( const uint8_t *  key,
uint32_t  fn,
ubit_t dl,
ubit_t ul 
)

◆ osmo_a5_2()

void osmo_a5_2 ( const uint8_t *  key,
uint32_t  fn,
ubit_t dl,
ubit_t ul 
)

◆ osmo_a5_fn_count()

static uint32_t osmo_a5_fn_count ( uint32_t  fn)
inlinestatic

Converts a frame number into the 22 bit number used in A5/x

Parameters
[in]fnThe true framenumber
Returns
22 bit word

References t1, t2, and t3.