vb2_sha256_x86_test: check sha-ni support by cpuid
vb2_sha256_x86_test: check sha-ni support by cpuid

The test uses sha-ni extension, so it crashes on platforms without
sha-ni. Add cpuid checks to avoid that.

BUG=b:162551138
BRANCH=none
TEST=run test on Haswell, which doesn't have sha-ni

Signed-off-by: Kangheui Won <004e7c12639434a3b28c7bfb961b6847920f7af9@chromium.org>
Change-Id: I6e18843a723d022c67832ef970d4dc470c1aadce
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/3140849
Reviewed-by: Raul E Rangel <9a9c998e11a2655b1de9a05eeeef5f710c0dc7ed@chromium.org>

coreboot/vboot,coreboot/vboot,coreboot/vboot,coreboot/vboot,coreboot/vboot