examples/fips_validation: fix parsing of TDES vectors
authorAyuj Verma <ayverma@marvell.com>
Thu, 11 Jun 2020 13:44:16 +0000 (19:14 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sat, 18 Jul 2020 21:09:01 +0000 (23:09 +0200)
commit32440cdf2af9ad38fd32a533f51a32da92345007
tree08fcf9952f2a3e81a889c31ceb4d814b243d635f
parenta18622864c8e9e7f7eea463db69ec3d4df00efdc
examples/fips_validation: fix parsing of TDES vectors

Processing of test vector for COUNT = 0 is getting skipped, as
some of the NIST TDES files doesn't have an empty line after
[ENCRYPT]/[DECRYPT] and thus treated as an interim block.

Parse function now identifies such blocks, separates out interim
and test vector data, and then parses each with their respective
callbacks.

Fixes: 3d0fad56b74a ("examples/fips_validation: add crypto FIPS application")
Cc: stable@dpdk.org
Signed-off-by: Archana Muniganti <marchana@marvell.com>
Signed-off-by: Ayuj Verma <ayverma@marvell.com>
examples/fips_validation/fips_validation.c
examples/fips_validation/fips_validation.h