|
|
|
| Подскажите кто знает на каком языке написан скрипт ..
int cTripleDes::PadMessage(unsigned char *data, int len)
{
DES_cblock padBytes;
unsigned char noPadBytes;
noPadBytes = (8 - ((len - 1) % 8)) % 8;
if(len+noPadBytes+1 >= CWS_NETMSGSIZE-8) {
dn(printf("cc-newcamd: message overflow in cTripleDes::PadMessage\n"))
return -1;
}
srand(time(NULL)); // make sure the random generator is initialized
DES_random_key((DES_cblock *)padBytes);
memcpy(data+len,padBytes,noPadBytes); len+=noPadBytes;
data[len]=XorSum(data+2,len-2);
return len+1;
} |
Это небольшой код из скрипта , я предполагаю что на С но не уверен . | |
|
|