diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 04:10:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2015-12-28 04:10:45 +0300 |
commit | 09935c16df8ef1ea77697c541ac55d7d2dbbb15d (patch) | |
tree | d6259d67916ae48f85ede5b81c209b247453623a /test/nist-sp-800-38a.py | |
parent | utils: interface update & refactoring (diff) | |
download | aes-tools-09935c16df8ef1ea77697c541ac55d7d2dbbb15d.tar.gz aes-tools-09935c16df8ef1ea77697c541ac55d7d2dbbb15d.zip |
test: refactoring
Diffstat (limited to 'test/nist-sp-800-38a.py')
-rw-r--r-- | test/nist-sp-800-38a.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/nist-sp-800-38a.py b/test/nist-sp-800-38a.py index a096a42..eb882b7 100644 --- a/test/nist-sp-800-38a.py +++ b/test/nist-sp-800-38a.py @@ -153,7 +153,7 @@ def _run_encryption_tests(tools, algo, mode, use_boxes=False): if algo in _init_vectors and mode in _init_vectors[algo]: iv = _init_vectors[algo][mode] ciphertexts = _ciphertexts[algo][mode] - _input = toolkit.EncryptionInput(key, _plaintexts, iv=iv) + _input = toolkit.BlockInput(key, _plaintexts, iv=iv) actual_output = tools.run_encrypt_block(algo, mode, _input, use_boxes) if _assert_output(actual_output, ciphertexts): return _TestExitCode.SUCCESS @@ -167,7 +167,7 @@ def _run_decryption_tests(tools, algo, mode, use_boxes=False): if algo in _init_vectors and mode in _init_vectors[algo]: iv = _init_vectors[algo][mode] ciphertexts = _ciphertexts[algo][mode] - _input = toolkit.DecryptionInput(key, ciphertexts, iv=iv) + _input = toolkit.BlockInput(key, ciphertexts, iv=iv) actual_output = tools.run_decrypt_block(algo, mode, _input, use_boxes) if _assert_output(actual_output, _plaintexts): return _TestExitCode.SUCCESS |