commit 9061a327ec1e77812b392794c47f63ea91500b88
parent b1084fbd04082653f5bc8386db0893c8eadeff62
Author: Jared Tobin <jared@jtobin.io>
Date: Sat, 10 Oct 2026 14:05:19 +0400
bench: check the fixture's frames decrypt
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/bench/Fixture.hs b/bench/Fixture.hs
@@ -53,6 +53,8 @@ fixture = do
(ct_64k, _) <- orFail "encrypt" (BOLT8.encrypt snd0 msg_64k)
(_, pend_1k) <- orFail "header"
(BOLT8.decrypt_header rcv0 (BS.take 18 ct_1k))
+ -- benchmark the success path, not MAC failure
+ mapM_ (orFail "decrypt" . BOLT8.decrypt rcv0) [ct_32, ct_1k, ct_64k]
pure Fixture {
fx_i = i, fx_r = r
, fx_msg1 = msg1, fx_i_hs = i_hs