Searched refs:enc_buf (Results 1 – 2 of 2) sorted by relevance
425 unsigned char *enc_buf; in cipher_array_bits_per_second() local429 enc_buf = crypto_alloc(octets_in_buffer); in cipher_array_bits_per_second()430 if (enc_buf == NULL) in cipher_array_bits_per_second()439 cipher_index = (*((uint32_t *)enc_buf)) % num_cipher; in cipher_array_bits_per_second()443 cipher_encrypt(cipher_array[cipher_index], enc_buf, &octets_in_buffer); in cipher_array_bits_per_second()447 free(enc_buf); in cipher_array_bits_per_second()
383 unsigned char *enc_buf; in cipher_bits_per_second() local386 enc_buf = (unsigned char*) crypto_alloc(octets_in_buffer); in cipher_bits_per_second()387 if (enc_buf == NULL) in cipher_bits_per_second()395 cipher_encrypt(c, enc_buf, &len); in cipher_bits_per_second()399 crypto_free(enc_buf); in cipher_bits_per_second()