Topic: Benchmark AES-CBC Encrypt Input/Output Parameters

I noticed in the benchmark that bench_cipher is provided as the input to wc_AesCbcEncrypt and bench_plain is passed as the output. I expected those parameters to be swapped. The same order is used for wc_AesCbcDecrypt. Can someone help me understand?

Share

Re: Benchmark AES-CBC Encrypt Input/Output Parameters

Hi Reid,

Thanks for the pointer to the benchmarking code argument issue. I'll post a fix for shortly.
The benchmarking isn't testing the data inputs/outputs, so the use of the buffer is not critical.

If you are looking for AES CBC test cases see wolfcrypt/test/test.c -> `aes_cbc_test`.

Are you seeing the AES benchmarks you expected? Depending on your platform you might consider using `--enable-intelasm` or `--enable-armasm` to speed up symmetric AES/SHA.

Let me know if you have any further questions.

Thanks,
David Garske, wolfSSL

Share

Re: Benchmark AES-CBC Encrypt Input/Output Parameters

Hi Reid,

I've posted the fix here:
https://github.com/wolfSSL/wolfssl/pull/4844

Thanks,
David Garske, wolfSSL

Share