diff options
author | Victor Shyba <victor1984@riseup.net> | 2016-12-06 23:16:28 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2016-12-06 23:30:42 -0300 |
commit | 0b96f01d40da37747d94f4182ea4a8cc8ebb1b05 (patch) | |
tree | 405c49c14e33e145f6fb6e2d77f781bf1fa40a9e /testing/tests/benchmarks/test_crypto.py | |
parent | efb37c37bda119d3f73cc4d79f3b663585219c23 (diff) |
[feature] use GCM instead of CTR+HMAC
Resolves: #8668 - client: substitute usage of CTR mode + HMAC by GCM
cipher mode
Signed-off-by: Victor Shyba <victor1984@riseup.net>
Diffstat (limited to 'testing/tests/benchmarks/test_crypto.py')
-rw-r--r-- | testing/tests/benchmarks/test_crypto.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/tests/benchmarks/test_crypto.py b/testing/tests/benchmarks/test_crypto.py index 8ee9b899..631ac041 100644 --- a/testing/tests/benchmarks/test_crypto.py +++ b/testing/tests/benchmarks/test_crypto.py @@ -66,8 +66,8 @@ def create_raw_decryption(size): @pytest.mark.benchmark(group="test_crypto_raw_decrypt") def test_raw_decrypt(benchmark, payload): key = payload(32) - iv, ciphertext = _crypto.encrypt_sym(payload(size), key) - benchmark(_crypto.decrypt_sym, ciphertext, key, iv) + iv, tag, ciphertext = _crypto.encrypt_sym(payload(size), key) + benchmark(_crypto.decrypt_sym, ciphertext, key, iv, tag) return test_raw_decrypt |