test: improve test coverage of native crypto code
These error conditions are currently not being tested:
- Creating a cipher with an invalid algorithm.
- Creating a cipher with an invalid key length.
- Creating an HMAC with an invalid algorithm.
- Signing with an invalid algorithm.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines