Skip to content

Instantly share code, notes, and snippets.

View alexandrugrusu's full-sized avatar

George alexandrugrusu

  • Bucharest
View GitHub Profile
main.c
rcvr->message.header.seq = snd->message.header.seq;
for(i = 0; read(ixfd, &s, 2) > 0; i++)
{
in_buffer[wr++] = s;
if((i == B_LEN) || (cnt == round(fsize / (B_LEN) / 2) && i == elim))
{
len = i * 2;
my_srtp_encrypt(snd, (char *) in_buffer, &len);