mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 13:45:45 +01:00
ef42f22edd
The test suites `test_suite_gcm.aes{128,192,256}_en.data` contains numerous NIST test vectors for AES-*-GCM against which the GCM API mbedtls_gcm_xxx() is tested. However, one level higher at the cipher API, no tests exist which exercise mbedtls_cipher_auth_{encrypt/decrypt}() for GCM ciphers, although test_suite_cipher.function contains the test auth_crypt_tv which does precisely that and is already used e.g. in test_suite_cipher.ccm. This commit replicates the test vectors from test_suite_gcm.aes{128,192,256}_en.data in test_suite_cipher.gcm.data and adds a run of auth_crypt_tv for each of them. The conversion was mainly done through the sed command line ``` s/gcm_decrypt_and_verify:\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\): \([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\):\([^:]*\)/auth_crypt_tv: \1:\2:\4:\5:\3:\7:\8:\9/ ``` |
||
---|---|---|
.. | ||
.jenkins | ||
data_files | ||
git-scripts | ||
scripts | ||
suites | ||
.gitignore | ||
CMakeLists.txt | ||
compat.sh | ||
Descriptions.txt | ||
Makefile | ||
ssl-opt.sh |