Searched refs:octets_in_buffer (Results 1 – 5 of 5) sorted by relevance
196 ctx->octets_in_buffer = 0; in sha1_init()214 if (octets_in_msg + ctx->octets_in_buffer >= 64) { in sha1_update()220 octets_in_msg -= (64 - ctx->octets_in_buffer); in sha1_update()221 for (i=ctx->octets_in_buffer; i < 64; i++) in sha1_update()223 ctx->octets_in_buffer = 0; in sha1_update()235 for (i=ctx->octets_in_buffer; in sha1_update()236 i < (ctx->octets_in_buffer + octets_in_msg); i++) in sha1_update()238 ctx->octets_in_buffer += octets_in_msg; in sha1_update()262 int tail = ctx->octets_in_buffer % 4; in sha1_final()265 for (i=0; i < (ctx->octets_in_buffer+3)/4; i++) in sha1_final()[all …]
85 unsigned octets_in_buffer, int num_trials);421 unsigned octets_in_buffer, int num_trials) { in cipher_array_bits_per_second() argument429 enc_buf = crypto_alloc(octets_in_buffer); in cipher_array_bits_per_second()443 cipher_encrypt(cipher_array[cipher_index], enc_buf, &octets_in_buffer); in cipher_array_bits_per_second()454 return CLOCKS_PER_SEC * num_trials * 8 * octets_in_buffer / timer; in cipher_array_bits_per_second()
379 cipher_bits_per_second(cipher_t *c, int octets_in_buffer, int num_trials) { in cipher_bits_per_second() argument384 unsigned int len = octets_in_buffer; in cipher_bits_per_second()386 enc_buf = (unsigned char*) crypto_alloc(octets_in_buffer); in cipher_bits_per_second()406 return (uint64_t)CLOCKS_PER_SEC * num_trials * 8 * octets_in_buffer / timer; in cipher_bits_per_second()
56 int octets_in_buffer; /* octets of message in buffer */ member
216 cipher_bits_per_second(cipher_t *c, int octets_in_buffer, int num_trials);