• Home
  • Raw
  • Download

Lines Matching refs:chunk_len

351 static std::string ChunkLenSuffix(size_t chunk_len) {  in ChunkLenSuffix()  argument
353 snprintf(buf, sizeof(buf), " (%zu byte%s)", chunk_len, in ChunkLenSuffix()
354 chunk_len != 1 ? "s" : ""); in ChunkLenSuffix()
359 size_t chunk_len, size_t ad_len, in SpeedAEADChunk() argument
363 name += ChunkLenSuffix(chunk_len); in SpeedAEADChunk()
373 std::unique_ptr<uint8_t[]> in_storage(new uint8_t[chunk_len + kAlignment]); in SpeedAEADChunk()
378 new uint8_t[chunk_len + overhead_len + kAlignment]); in SpeedAEADChunk()
380 new uint8_t[chunk_len + overhead_len + kAlignment]); in SpeedAEADChunk()
388 OPENSSL_memset(in, 0, chunk_len); in SpeedAEADChunk()
390 OPENSSL_memset(out, 0, chunk_len + overhead_len); in SpeedAEADChunk()
406 [chunk_len, nonce_len, ad_len, overhead_len, in, out, tag, in SpeedAEADChunk()
411 nonce.get(), nonce_len, in, chunk_len, nullptr, 0, in SpeedAEADChunk()
420 EVP_AEAD_CTX_seal(ctx.get(), out, &out_len, chunk_len + overhead_len, in SpeedAEADChunk()
421 nonce.get(), nonce_len, in, chunk_len, ad.get(), ad_len); in SpeedAEADChunk()
433 [chunk_len, overhead_len, nonce_len, ad_len, in2, out, in SpeedAEADChunk()
439 chunk_len + overhead_len, in SpeedAEADChunk()
450 name + (direction == evp_aead_seal ? " seal" : " open"), chunk_len); in SpeedAEADChunk()
460 for (size_t chunk_len : g_chunk_lengths) { in SpeedAEAD() local
461 if (!SpeedAEADChunk(aead, name, chunk_len, ad_len, evp_aead_seal)) { in SpeedAEAD()
474 for (size_t chunk_len : g_chunk_lengths) { in SpeedAEADOpen() local
475 if (!SpeedAEADChunk(aead, name, chunk_len, ad_len, evp_aead_open)) { in SpeedAEADOpen()
553 size_t chunk_len) { in SpeedHashChunk() argument
557 if (chunk_len > sizeof(scratch)) { in SpeedHashChunk()
561 name += ChunkLenSuffix(chunk_len); in SpeedHashChunk()
563 if (!TimeFunction(&results, [&ctx, md, chunk_len, &scratch]() -> bool { in SpeedHashChunk()
568 EVP_DigestUpdate(ctx.get(), scratch, chunk_len) && in SpeedHashChunk()
576 results.PrintWithBytes(name, chunk_len); in SpeedHashChunk()
586 for (size_t chunk_len : g_chunk_lengths) { in SpeedHash() local
587 if (!SpeedHashChunk(md, name, chunk_len)) { in SpeedHash()
595 static bool SpeedRandomChunk(std::string name, size_t chunk_len) { in SpeedRandomChunk() argument
598 if (chunk_len > sizeof(scratch)) { in SpeedRandomChunk()
602 name += ChunkLenSuffix(chunk_len); in SpeedRandomChunk()
604 if (!TimeFunction(&results, [chunk_len, &scratch]() -> bool { in SpeedRandomChunk()
605 RAND_bytes(scratch, chunk_len); in SpeedRandomChunk()
611 results.PrintWithBytes(name, chunk_len); in SpeedRandomChunk()
620 for (size_t chunk_len : g_chunk_lengths) { in SpeedRandom() local
621 if (!SpeedRandomChunk("RNG", chunk_len)) { in SpeedRandom()