lbrycrd/src/bench
Jonas Schnelli 695141bf7a
Merge #15512: Add ChaCha20 encryption option (XOR)
2dfe27517 Add ChaCha20 bench (Jonas Schnelli)
2bc2b8b49 Add ChaCha20 encryption option (XOR) (Jonas Schnelli)

Pull request description:

  The current ChaCha20 implementation does not support message encryption (it can only output the keystream which is sufficient for the RNG).

  This PR adds the actual XORing of the `plaintext` with the `keystream` in order to return the desired `ciphertext`.

  Required for v2 message transport protocol.

ACKs for commit 2dfe27:
  jnewbery:
    Looks good. utACK 2dfe275171.
  jnewbery:
    utACK 2dfe275171
  sipa:
    utACK 2dfe275171
  ryanofsky:
    utACK 2dfe275171. Changes since last review are just renaming the Crypt method, adding comments, and simplifying the benchmark.

Tree-SHA512: 84bb234da2ca9fdc44bc29a786d9dd215520f81245270c1aef801ef66b6091b7793e2eb38ad6dbb084925245065c5dce9e5582f2d0fa220ab3e182d43412d5b5
2019-05-10 09:26:23 +02:00
..
data Add deserialize + CheckBlock benchmarks, and a full block hex 2016-11-09 11:27:59 -08:00
.gitignore Ignore bench_bitcoin binary. 2015-10-06 17:46:12 +02:00
base58.cpp tests: Explicitly ignore the return value of DecodeBase58(...) 2018-11-05 16:52:59 +01:00
bech32.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
bench.cpp scripted-diff: replace chainActive -> ::ChainActive() 2019-05-03 15:02:54 -04:00
bench.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
bench_bitcoin.cpp scripted-diff: Bump copyright headers in test, bench 2019-04-11 13:34:43 -04:00
block_assemble.cpp scripted-diff: Bump copyright headers in test, bench 2019-04-11 13:34:43 -04:00
ccoins_caching.cpp Replace CScriptID and CKeyID in CTxDestination with dedicated types 2019-04-29 10:15:23 -04:00
chacha20.cpp Add ChaCha20 bench 2019-05-03 22:52:11 +02:00
checkblock.cpp Don't access out of bounds array entry array[sizeof(array)] 2018-10-05 16:48:16 +09:00
checkqueue.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
coin_selection.cpp bitcoin-wallet tool: Drop MakeChain calls 2019-04-10 09:51:37 -04:00
crypto_hash.cpp Extract CSipHasher to it's own file in crypto/ directory. 2018-11-05 09:25:15 -08:00
duplicate_inputs.cpp scripted-diff: replace chainActive -> ::ChainActive() 2019-05-03 15:02:54 -04:00
examples.cpp scripted-diff: Move util files to separate directory. 2018-11-04 22:46:07 -08:00
gcs_filter.cpp blockfilter: Refactor GCS params into struct. 2018-11-06 09:12:54 -08:00
lockedpool.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
mempool_eviction.cpp test: Add missing validation locks 2018-12-17 14:27:29 -05:00
merkle_root.cpp Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
poly1305.cpp Add Poly1305 bench 2019-03-26 18:12:31 +01:00
prevector.cpp Drop defunct IS_TRIVIALLY_CONSTRUCTIBLE handling from prevector.h 2018-11-14 12:19:04 -05:00
rollingbloom.cpp Merge #13767: Remove redundant assignments (dead stores) 2018-08-27 13:39:46 -04:00
rpc_mempool.cpp bench: Benchmark MempoolToJSON 2019-02-25 10:13:23 -05:00
verify_script.cpp Merge #13666: Always create signatures with Low R values 2018-08-13 12:07:20 +02:00
wallet_balance.cpp refactor: Add handleNotifications method to wallet 2019-04-17 14:20:44 -04:00