Searched refs:enc_buf (Results 1 - 4 of 4) sorted by relevance

/external/chromium_org/third_party/libsrtp/srtp/crypto/test/
H A Dcipher_driver.c461 unsigned char *enc_buf; local
465 enc_buf = crypto_alloc(octets_in_buffer+17);
466 if (enc_buf == NULL)
468 memset(enc_buf, 0, octets_in_buffer);
480 cipher_encrypt(cipher_array[cipher_index], enc_buf, &octets_to_encrypt);
483 cipher_index = (*((uint32_t *)enc_buf)) % num_cipher;
487 free(enc_buf);
/external/chromium_org/third_party/libsrtp/srtp/crypto/cipher/
H A Dcipher.c397 unsigned char *enc_buf; local
400 enc_buf = (unsigned char*) crypto_alloc(octets_in_buffer);
401 if (enc_buf == NULL)
409 cipher_encrypt(c, enc_buf, &len);
413 crypto_free(enc_buf);
/external/srtp/crypto/cipher/
H A Dcipher.c383 unsigned char *enc_buf; local
386 enc_buf = (unsigned char*) crypto_alloc(octets_in_buffer);
387 if (enc_buf == NULL)
395 cipher_encrypt(c, enc_buf, &len);
399 crypto_free(enc_buf);
/external/srtp/crypto/test/
H A Dcipher_driver.c425 unsigned char *enc_buf; local
429 enc_buf = crypto_alloc(octets_in_buffer);
430 if (enc_buf == NULL)
439 cipher_index = (*((uint32_t *)enc_buf)) % num_cipher;
443 cipher_encrypt(cipher_array[cipher_index], enc_buf, &octets_in_buffer);
447 free(enc_buf);

Completed in 304 milliseconds