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: d22c949cc466bf28de559855a1cb525740578137 ** Merge commit sha: ba7b9d98bb5dfe0cf7d7d28767c7a9c02d421d2d **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 77 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:259: + EVP_EncryptUpdate(ctx, NULL, &dummy_len, mapaddr, maclen); CHECK: Avoid CamelCase: <EVP_EncryptFinal_ex> #88: FILE: platform/linux-generic/odp_crypto.c:264: + ret = EVP_EncryptFinal_ex(ctx, NULL, &dummy_len); CHECK: Avoid CamelCase: <EVP_EncryptInit_ex> #120: FILE: platform/linux-generic/odp_crypto.c:609: + EVP_EncryptInit_ex(ctx, session->auth.evp_cipher, NULL, CHECK: Avoid CamelCase: <EVP_DecryptInit_ex> #159: FILE: platform/linux-generic/odp_crypto.c:648: + 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, 75 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------------------------