From 74ecb636714fb5c73108784a9445a565d53b5f3d Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 20 Mar 2022 14:04:18 +0100 Subject: [PATCH] fix new crypto benchmarks for api change --- src/borg/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index b6923495e..8845059c4 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -604,9 +604,9 @@ def chunkit(chunker_name, *args, **kwargs): if not is_libressl: tests.extend([ ("aes-256-ocb", lambda: AES256_OCB( - None, key_256, iv=key_96, header_len=1, aad_offset=1).encrypt(random_10M, header=b'X')), + key_256, iv=key_96, header_len=1, aad_offset=1).encrypt(random_10M, header=b'X')), ("chacha20-poly1305", lambda: CHACHA20_POLY1305( - None, key_256, iv=key_96, header_len=1, aad_offset=1).encrypt(random_10M, header=b'X')), + key_256, iv=key_96, header_len=1, aad_offset=1).encrypt(random_10M, header=b'X')), ]) for spec, func in tests: print(f"{spec:<24} {size:<10} {timeit(func, number=100):.3f}s")