From 5e7532472d3306d3b6e8ff34001cdc2f6752cf8f Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Mon, 20 Jan 2025 11:24:27 +0100 Subject: [PATCH] Add test for HMAC errors. Closes #478. --- regress/hmac-error.test | 10 ++++++++++ regress/hmac-error.zip | Bin 0 -> 208 bytes 2 files changed, 10 insertions(+) create mode 100644 regress/hmac-error.test create mode 100644 regress/hmac-error.zip diff --git a/regress/hmac-error.test b/regress/hmac-error.test new file mode 100644 index 000000000..66644ce49 --- /dev/null +++ b/regress/hmac-error.test @@ -0,0 +1,10 @@ +description test file that has an HMAC error +return 1 +arguments hmac-error.zip set_password 1234 cat 0 +file hmac-error.zip hmac-error.zip +stdout +The quick brown fox jumps over t quazy dog +end-of-inline-data +stderr +can't read file at index '0': CRC error +end-of-inline-data diff --git a/regress/hmac-error.zip b/regress/hmac-error.zip new file mode 100644 index 0000000000000000000000000000000000000000..c8be5908e5c98d6c1fbd098b7676267aef552a12 GIT binary patch literal 208 zcmWIWW@a&FU}i{WI9{L|Wx3ej(Sw13K^urU7`PcqQj1IUN-9biXRtiMFb%&2w{3}}Rv|pFIH0U_j zSKnYO$!(!c0(dh^#A|> literal 0 HcmV?d00001