GTToolBox/GTEncryption/GTEncryptionMDFive.c
/* Decodes input (unsigned char) into output (UINT4). Assumes len is a multiple of 4.*/
Decodes input (unsigned char) into output (UINT4). Assumes len is a multiple of 4.
Decodes input ( unsigned char ) into output ( UINT4 ) . Assumes len is a multiple of 4 .
static void ZX_Decode(UINT4 *output,unsigned char *input,unsigned int len)
{
    unsigned int i, j;
    for (i = 0, j = 0; j < len; i++, j += 4)
        output[i] = ((UINT4)input[j]) | (((UINT4)input[j+1]) << 8) | (((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
static void ZX_Decode ( UINT4 * output , unsigned char * input , unsigned int len ) { unsigned int i , j ; for ( i = 0 , j = 0 ; j < len ; i ++ , j += 4 ) output [ i ] = ( ( UINT4 ) input [ j ] ) | ( ( ( UINT4 ) input [ j + 1 ] ) << 8 ) | ( ( ( UINT4 ) input [ j + 2 ] ) << 16 ) | ( ( ( UINT4 ) input [ j + 3 ] ) << 24 ) ; }
Decodes input (unsigned char) into output (UINT4).
Decodes input ( unsigned char ) into output ( UINT4 ) .