Esempio n. 1
0
void rc4_encrypt(PRC4Ext pRC4, unsigned char *pbyDest,
                     unsigned char *pbySrc, unsigned int cbData_len)
{
    unsigned int ii;
    for (ii = 0; ii < cbData_len; ii++)
        pbyDest[ii] = (unsigned char)(pbySrc[ii] ^ rc4_byte(pRC4));
}
Esempio n. 2
0
VOID rc4_encrypt(PRC4Ext pRC4, PBYTE pbyDest,
                     PBYTE pbySrc, UINT cbData_len)
{
    UINT ii;
    for (ii = 0; ii < cbData_len; ii++)
        pbyDest[ii] = (BYTE)(pbySrc[ii] ^ rc4_byte(pRC4));
}