travail sur la conversion TNS en XML

Bonjour a tous,
je travaille en ce moment sur un outil pour decompresser un .tns sur un PC.
En etudiant le code de luna, on y voit que les Problem1.xml en lua ont une entete dédiée
static const char tien_crypted_header[] =
"\x0F\xCE\xD8\xD2\x81\x06\x86\x5B\x99\xDD\xA2\x3D\xD9\xE9\x4B\xD4\x31\xBB\x50\xB6"
"\x4D\xB3\x29\x24\x70\x60\x49\x38\x1C\x30\xF8\x99\x00\x4B\x92\x64\xE4\x58\xE6\xBC";
le fichier est cryptée avec les clés suivantes
/* Compatible with tien_crypted_header below from which they are derived */
static unsigned char cbc1_key[8] = {0x16, 0xA7, 0xA7, 0x32, 0x68, 0xA7, 0xBA, 0x73};
static unsigned char cbc2_key[8] = {0xD9, 0xA8, 0x86, 0xA4, 0x34, 0x45, 0x94, 0x10};
static unsigned char cbc3_key[8] = {0x3D, 0x80, 0x8C, 0xB5, 0xDF, 0xB3, 0x80, 0x6B};
unsigned char ivec[8] = {0x00, 0x00, 0x00, 0x00}; /* the last 4 bytes are incremented each time, LSB first */
unsigned ivec_incr = 0;
/* As stored in tien_crypted_header below */
#define IVEC_BASE 0x6fe21307
Mais je ne trouve pas comment ces clés sont calculées a partir du header : est que ce quelqu'un saurait comment ces clés sont deduites ?encore un encryptage SSL ?
merci de votre aide
je travaille en ce moment sur un outil pour decompresser un .tns sur un PC.
En etudiant le code de luna, on y voit que les Problem1.xml en lua ont une entete dédiée
static const char tien_crypted_header[] =
"\x0F\xCE\xD8\xD2\x81\x06\x86\x5B\x99\xDD\xA2\x3D\xD9\xE9\x4B\xD4\x31\xBB\x50\xB6"
"\x4D\xB3\x29\x24\x70\x60\x49\x38\x1C\x30\xF8\x99\x00\x4B\x92\x64\xE4\x58\xE6\xBC";
le fichier est cryptée avec les clés suivantes
/* Compatible with tien_crypted_header below from which they are derived */
static unsigned char cbc1_key[8] = {0x16, 0xA7, 0xA7, 0x32, 0x68, 0xA7, 0xBA, 0x73};
static unsigned char cbc2_key[8] = {0xD9, 0xA8, 0x86, 0xA4, 0x34, 0x45, 0x94, 0x10};
static unsigned char cbc3_key[8] = {0x3D, 0x80, 0x8C, 0xB5, 0xDF, 0xB3, 0x80, 0x6B};
unsigned char ivec[8] = {0x00, 0x00, 0x00, 0x00}; /* the last 4 bytes are incremented each time, LSB first */
unsigned ivec_incr = 0;
/* As stored in tien_crypted_header below */
#define IVEC_BASE 0x6fe21307
Mais je ne trouve pas comment ces clés sont calculées a partir du header : est que ce quelqu'un saurait comment ces clés sont deduites ?encore un encryptage SSL ?
merci de votre aide