mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 11:25:42 +01:00
Add NIST AES GCM test vectors to single-step cipher API test suite
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/ ```
This commit is contained in:
parent
fb1972db23
commit
ef308c993f