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