A52HackTool 1.3.0
Turnkey & easy to use tool for cracking the GSM A5/2 cipher
Functions
interleaving.c File Reference

Implementation of third encoding & decoding phase: Interleaving. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "utils.h"
#include "const_code.h"
#include "interleaving.h"

Functions

void processInterleavingGMatrix (byte G[INTERLEAVING_LENGTH][INTERLEAVING_LENGTH])
 Calculates the encoding matrix corresponding to the Interleaving encoding step.
void reverseInterleaving (byte in[INTERLEAVING_LENGTH], byte out[INTERLEAVING_LENGTH])
 Decodes a previously interleaved message.

Detailed Description

Implementation of third encoding & decoding phase: Interleaving.

Author:
Nicolas Paglieri & Olivier Benjamin
Version:
File Revision #8
Date:
24/06/2011

Function Documentation

void processInterleavingGMatrix ( byte  G[INTERLEAVING_LENGTH][INTERLEAVING_LENGTH])

Calculates the encoding matrix corresponding to the Interleaving encoding step.

Parameters:
[out]GInterleaving encoding matrix

References INTERLEAVING_LENGTH.

Referenced by processFullEncodingGMatrix().

void reverseInterleaving ( byte  in[INTERLEAVING_LENGTH],
byte  out[INTERLEAVING_LENGTH] 
)

Decodes a previously interleaved message.

Parameters:
[in]inInterleaved data to decode
[out]outDecoded data

References CONVOLUTION_SOURCE_LENGTH, and INTERLEAVING_LENGTH.

Referenced by processFullDecoding().