Implement Benchmark Suite in asuran-cli
Asruan-cli should have a benchmark suite that outputs recorded speeds for all supported cipher and hmac combination
Calling it should take the form of of asuran-cli bench-crypto
and should output a table in the following format:
Cipher | HMAC | Bandwidth (MB/s) |
---|---|---|
AES256 | Sha2 | XX.X MB/s |
Sha3 | XX.X MB/s | |
Blake2b | XX.X MB/s | |
Blake2bp | XX.X MB/s | |
Blake3 | XX.X MB/s | |
ChaCha20 | Sha2 | XX.X MB/s |
Sha3 | XX.X MB/s | |
Blake2b | XX.X MB/s | |
Blake2bp | XX.X MB/s | |
Blake3 | XX.X MB/s |
It should also include a note instructing the user that all provided crypto primitives are roughly equivalent in security, and they should roughly decide based on which is fastest on their hardware.
Note: While SHA2 itself isn't quite the most secure thing in the world, and while using an HMAC instead of a straight hash mitigates this somewhat, users should probably be cautioned that if they don't understand the distinction, and SHA2 is the fastest on their platform, they should probably choose the next fastest instead.