ThePassionate opened a new pull request, #4078: URL: https://github.com/apache/nuttx-apps/pull/4078
## Summary Test coverage for the symmetric capabilities added in apache/nuttx#21957: * **aescbc**: four AES-128 vectors (RFC 3602) plus the NIST SP 800-38A AES-192 and AES-256 vectors; every vector runs encrypt/decrypt one-shot and encrypt/decrypt as a 16-byte-block update chain. * **aesctr**: every vector additionally runs as an 8-byte-chunk update chain, which crosses block boundaries and verifies that the keystream tail carries over between requests. * **aescmac**: the four NIST 256-bit CMAC vectors next to the existing 128-bit ones. * **aesgcm** (new test): AES-GCM through the composite session with the GCM spec test case 4 parameters - encrypt/decrypt round trip plus a known-answer check of ciphertext and tag, once with the 96-bit IV and once with an 8-byte IV (GHASH-derived pre-counter block). AAD and payload are fed as separate update steps. The expected values are cross-checked against an independent host implementation. ## Impact * Testing only. New `TESTING_CRYPTO_AESGCM` option (default n); the other tests extend existing files. ## Testing Depends on apache/nuttx#21957. On sim:sim/crypto with that kernel series, all of the above pass: ``` aescbc test vector 0..5 ok OK test vector 0..8 / OK test vector 0..8 stream mode (aesctr) aes cmac test 0-3 (128 bits) ok / aes cmac test 0-3 (256 bits) ok aesgcm test ok (iv length 12) aesgcm test ok (iv length 8) ``` `tools/checkpatch.sh -c -u -m -g <base>..HEAD` (via the paired nuttx tree) passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
