test: import more test cases to cryptapi_test
- Import test cases from test/testcases/crypto/* except for aesctr
which we do not have support for.
- Dedup fixtures. We are testing symmetric ciphers here, so there is
no need to keep duplicates of plaintext -> ciphertext and ciphertext
-> plaintext.
- Always test in both directions: Encrypt plaintext and decrypt
ciphertext.
- Store ct (ciphertext) in fixtures.csv.
test: Integrate benchmark into cryptoapi_test util
Print execution times and add "-n REPETITIONS" option.
Take the benchmark results with a grain of salt when comparing the
cryptoapi results against the cryptodev results, as we do not use
the AESNI CPU instruction when crytoapi is used outside the kernel.
While there, parse CLI options using getopt(3) and add a few more
test fixtures.
cryptoapi: inline functions and s/blocklen/blocksize/
- Inline a few functions which previously were macros
- Consistently use "blocksize" instead of "blocklen"
- Use uint8_t for alpha instead of int
- Use memset() in proximity of memcpy()
- Non-functional change