![]() |
A52HackTool 1.3.0
Turnkey & easy to use tool for cracking the GSM A5/2 cipher
|
Specification of A5/2 keystream generation. More...
#include "const_A52.h"Go to the source code of this file.
Functions | |
| void | keysetup (const byte Kc[SECRETKEY_BITS], const byte frameId[FRAMEID_BITS]) |
| Initializes the whole system according to the keysetup procedure. | |
| void | getKeystream (byte keystream[], const int len) |
| Generates the desired amount of keystream. | |
| int | keygen_test () |
| Autotests the key generation on a verified set. | |
Specification of A5/2 keystream generation.
| void getKeystream | ( | byte | keystream[], |
| const int | len | ||
| ) |
Generates the desired amount of keystream.
| [out] | keystream | Keystream to be generated |
| [in] | len | desired amount of keystream bits |
References keygen_clockingUnit(), and keygen_getOutBit().
Referenced by attack_test(), keygen_test(), main(), and matrices_generation_test().
| int keygen_test | ( | ) |
Autotests the key generation on a verified set.
References DEBUG, FRAMEID_BITS, getKeystream(), keysetup(), and SECRETKEY_BITS.
Referenced by main().
Initializes the whole system according to the keysetup procedure.
| [in] | Kc | Secret Key |
| [in] | frameId | Frame Id |
References FRAMEID_BITS, keygen_clockingUnit(), R1, R1_BITS, R1_INITIAL_CONST_POS, R2, R2_BITS, R2_INITIAL_CONST_POS, R3, R3_BITS, R3_INITIAL_CONST_POS, R4, R4_BITS, R4_INITIAL_CONST_POS, and SECRETKEY_BITS.
Referenced by attack_test(), keygen_test(), main(), and matrices_generation_test().
1.7.4