Lines Matching refs:chunk_len
182 size_t chunk_len, size_t ad_len) { in SpeedAEADChunk() argument
194 std::unique_ptr<uint8_t[]> in_storage(new uint8_t[chunk_len + kAlignment]); in SpeedAEADChunk()
195 std::unique_ptr<uint8_t[]> out_storage(new uint8_t[chunk_len + overhead_len + kAlignment]); in SpeedAEADChunk()
200 memset(in, 0, chunk_len); in SpeedAEADChunk()
202 memset(out, 0, chunk_len + overhead_len); in SpeedAEADChunk()
213 if (!TimeFunction(&results, [chunk_len, overhead_len, nonce_len, ad_len, in, in SpeedAEADChunk()
218 &ctx, out, &out_len, chunk_len + overhead_len, nonce.get(), in SpeedAEADChunk()
219 nonce_len, in, chunk_len, ad.get(), ad_len); in SpeedAEADChunk()
226 results.PrintWithBytes(name + " seal", chunk_len); in SpeedAEADChunk()
245 size_t chunk_len) { in SpeedHashChunk() argument
249 if (chunk_len > sizeof(scratch)) { in SpeedHashChunk()
254 if (!TimeFunction(&results, [ctx, md, chunk_len, &scratch]() -> bool { in SpeedHashChunk()
259 EVP_DigestUpdate(ctx, scratch, chunk_len) && in SpeedHashChunk()
267 results.PrintWithBytes(name, chunk_len); in SpeedHashChunk()
284 static bool SpeedRandomChunk(const std::string name, size_t chunk_len) { in SpeedRandomChunk() argument
287 if (chunk_len > sizeof(scratch)) { in SpeedRandomChunk()
292 if (!TimeFunction(&results, [chunk_len, &scratch]() -> bool { in SpeedRandomChunk()
293 RAND_bytes(scratch, chunk_len); in SpeedRandomChunk()
299 results.PrintWithBytes(name, chunk_len); in SpeedRandomChunk()