This is an example of AES-GMAC(-ESP) implementation. Plaintext is passed as normal packet, IV/salt are passed according to the rest of API. This incorporates one commit from #243.
----------------github------------------------ /** Email created from pull request 288 (lumag:gmac) ** https://github.com/Linaro/odp/pull/288 ** Patch: https://github.com/Linaro/odp/pull/288.patch ** Base sha: a908a4dead95321e84d6a8a23de060051dcd8969 ** Merge commit sha: 9fff58cf77d87306efed89f77e84f957850623d5 **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 121 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 16 lines checked to_send-p-001.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 25 lines checked to_send-p-002.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 123 lines checked to_send-p-003.patch has no obvious style problems and is ready for submission. WARNING: Missing a blank line after declarations #33: FILE: platform/linux-generic/include/odp_crypto_internal.h:56: + const EVP_MD *evp_md; + const EVP_CIPHER *evp_cipher; CHECK: Avoid CamelCase: <EVP_EncryptUpdate> #83: FILE: platform/linux-generic/odp_crypto.c:260: + EVP_EncryptUpdate(ctx, NULL, &dummy_len, mapaddr, maclen); CHECK: Avoid CamelCase: <EVP_EncryptFinal_ex> #88: FILE: platform/linux-generic/odp_crypto.c:265: + ret = EVP_EncryptFinal_ex(ctx, NULL, &dummy_len); CHECK: Avoid CamelCase: <EVP_EncryptInit_ex> #120: FILE: platform/linux-generic/odp_crypto.c:610: + EVP_EncryptInit_ex(ctx, session->auth.evp_cipher, NULL, CHECK: Avoid CamelCase: <EVP_DecryptInit_ex> #159: FILE: platform/linux-generic/odp_crypto.c:649: + EVP_DecryptInit_ex(ctx, session->auth.evp_cipher, NULL, total: 0 errors, 1 warnings, 4 checks, 202 lines checked to_send-p-004.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. total: 0 errors, 0 warnings, 0 checks, 81 lines checked to_send-p-005.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 102 lines checked to_send-p-006.patch has no obvious style problems and is ready for submission. CHECK: Alignment should match open parenthesis #184: FILE: test/validation/api/ipsec/test_vectors.h:49: +KEY(key_mcgrew_gcm_15, 0x4c, 0x80, 0xcd, 0xef, 0xbb, 0x5d, 0x10, 0xda, + 0x90, 0x6a, 0xc7, 0x3c, 0x36, 0x13, 0xa6, 0x34); total: 0 errors, 0 warnings, 1 checks, 198 lines checked to_send-p-007.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. ----------------/checkpatch.pl------------------------