Assert the actual verify result in the pkcs7 and rsa-nb checks

pull/598/head
aidan garske 2026-07-22 13:02:15 -07:00
parent a629a78b67
commit 8b20297566
3 changed files with 5 additions and 2 deletions

View File

@ -38,5 +38,5 @@ clean:
check: SHELL := /bin/bash
check: .SHELLFLAGS := -eo pipefail -c
check: rsa-nb
./rsa-nb | grep -q 'RSA non-block verify:'
./rsa-nb | grep -q 'RSA non-block verify successful'
@echo "PASS: pk-rsa checks"

View File

@ -227,6 +227,9 @@ int main(int argc, char** argv)
if (verifySz != (int)inSz || XMEMCMP(plain, in, inSz) != 0) {
ret = SIG_VERIFY_E;
}
else {
printf("RSA non-block verify successful\n");
}
prog_end:

View File

@ -62,5 +62,5 @@ clean:
check: SHELL := /bin/bash
check: .SHELLFLAGS := -eo pipefail -c
check: signedData-stream
./signedData-stream content.txt | grep -q 'bytes from file'
./signedData-stream content.txt | grep -q 'Successfully verified SignedData bundle'
@echo "PASS: pkcs7-signeddata-stream checks"