Home
last modified time | relevance | path

Searched refs:octets_in_buffer (Results 1 – 5 of 5) sorted by relevance

/external/libsrtp2/crypto/hash/
Dsha1.c233 ctx->octets_in_buffer = 0; in srtp_sha1_init()
251 if (octets_in_msg + ctx->octets_in_buffer >= 64) { in srtp_sha1_update()
256 octets_in_msg -= (64 - ctx->octets_in_buffer); in srtp_sha1_update()
257 for (i = ctx->octets_in_buffer; i < 64; i++) { in srtp_sha1_update()
260 ctx->octets_in_buffer = 0; in srtp_sha1_update()
273 for (i = ctx->octets_in_buffer; in srtp_sha1_update()
274 i < (ctx->octets_in_buffer + octets_in_msg); i++) { in srtp_sha1_update()
277 ctx->octets_in_buffer += octets_in_msg; in srtp_sha1_update()
299 int tail = ctx->octets_in_buffer % 4; in srtp_sha1_final()
302 for (i = 0; i < (ctx->octets_in_buffer + 3) / 4; i++) { in srtp_sha1_final()
[all …]
/external/libsrtp2/crypto/test/
Dcipher_driver.c86 unsigned octets_in_buffer,
524 unsigned octets_in_buffer, in cipher_array_bits_per_second() argument
534 enc_buf = srtp_crypto_alloc(octets_in_buffer + 17); in cipher_array_bits_per_second()
545 unsigned octets_to_encrypt = octets_in_buffer; in cipher_array_bits_per_second()
565 return (uint64_t)CLOCKS_PER_SEC * num_trials * 8 * octets_in_buffer / timer; in cipher_array_bits_per_second()
/external/libsrtp2/crypto/cipher/
Dcipher.c627 int octets_in_buffer, in srtp_cipher_bits_per_second() argument
634 unsigned int len = octets_in_buffer; in srtp_cipher_bits_per_second()
636 enc_buf = (unsigned char *)srtp_crypto_alloc(octets_in_buffer); in srtp_cipher_bits_per_second()
663 return (uint64_t)CLOCKS_PER_SEC * num_trials * 8 * octets_in_buffer / timer; in srtp_cipher_bits_per_second()
/external/libsrtp2/crypto/include/
Dsha1.h140 int octets_in_buffer; /* octets of message in buffer */
Dcipher.h206 int octets_in_buffer,