Skip to content

Commit 8b20297

Browse files
committed
Assert the actual verify result in the pkcs7 and rsa-nb checks
1 parent a629a78 commit 8b20297

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

pk/rsa/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ clean:
3838
check: SHELL := /bin/bash
3939
check: .SHELLFLAGS := -eo pipefail -c
4040
check: rsa-nb
41-
./rsa-nb | grep -q 'RSA non-block verify:'
41+
./rsa-nb | grep -q 'RSA non-block verify successful'
4242
@echo "PASS: pk-rsa checks"

pk/rsa/rsa-nb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ int main(int argc, char** argv)
227227
if (verifySz != (int)inSz || XMEMCMP(plain, in, inSz) != 0) {
228228
ret = SIG_VERIFY_E;
229229
}
230+
else {
231+
printf("RSA non-block verify successful\n");
232+
}
230233

231234
prog_end:
232235

pkcs7/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ clean:
6262
check: SHELL := /bin/bash
6363
check: .SHELLFLAGS := -eo pipefail -c
6464
check: signedData-stream
65-
./signedData-stream content.txt | grep -q 'bytes from file'
65+
./signedData-stream content.txt | grep -q 'Successfully verified SignedData bundle'
6666
@echo "PASS: pkcs7-signeddata-stream checks"

0 commit comments

Comments
 (0)