[4/8] examples/fips_validation: move digest after cipher text
Checks
Commit Message
From: Michael Shamis <michaelsh@marvell.com>
Fix of GCM FIPS bug: ICV was not copied after the crypto text
in decryption operation so driver failed to check authentication
in GCM mode.
Signed-off-by: Michael Shamis <michaelsh@marvell.com>
---
examples/fips_validation/main.c | 4 ++++
1 file changed, 4 insertions(+)
@@ -636,6 +636,10 @@ prepare_aead_op(void)
}
memcpy(ct, vec.ct.val, vec.ct.len);
+
+ /* keep digest after crypto text */
+ memcpy(ct + vec.ct.len, vec.aead.digest.val,
+ vec.aead.digest.len);
sym->aead.data.length = vec.ct.len;
sym->aead.digest.data = vec.aead.digest.val;
sym->aead.digest.phys_addr = rte_malloc_virt2iova(