tests/qtest: Add test for Aspeed HACE accumulative mode
commite0c371a0d23bf2f6740af72cb19eeac53e1623c7
authorSteven Lee <steven_lee@aspeedtech.com>
Mon, 2 May 2022 15:03:04 +0000 (2 17:03 +0200)
committerCédric Le Goater <clg@kaod.org>
Mon, 2 May 2022 15:03:04 +0000 (2 17:03 +0200)
tree331d4b52e4eceea5426efbcddb9d3ebef69992f0
parent5cd7d8564a8b563da724b9e6264c967f0a091afa
tests/qtest: Add test for Aspeed HACE accumulative mode

This add two addition test cases for accumulative mode under sg enabled.

The input vector was manually craft with "abc" + bit 1 + padding zeros + L.
The padding length depends on algorithm, i.e. SHA512 (1024 bit),
SHA256 (512 bit).

The result was calculated by command line sha512sum/sha256sum utilities
without padding, i.e. only "abc" ascii text.

Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
[ clg: checkpatch fixes ]
Message-Id: <20220426021120.28255-4-steven_lee@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
tests/qtest/aspeed_hace-test.c