diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2016-12-19 23:37:17 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2016-12-20 21:17:23 +0100 |
commit | 09076f8cacc482317ac88953aaa0265d2a2526ee (patch) | |
tree | 9da8180fbe723cabfe64fd62d5a4e996a1d5aa7c | |
parent | 46fa5f1f63123efc2a9cb6c890fe69b6a5a7c030 (diff) |
Fix typo in test
-rw-r--r-- | tests/test_encryption.doctest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_encryption.doctest b/tests/test_encryption.doctest index 2819256..fa567ef 100644 --- a/tests/test_encryption.doctest +++ b/tests/test_encryption.doctest @@ -160,11 +160,11 @@ Test decryption with tripledes-cbc and a specified IV. >>> iv = a2b_hex('1010101010101010') >>> key = a2b_hex('12345678901234567890123456789012') ->>> cyphertext = encrypt('#tripledes-cbc', key, b'FOOBAR', iv) ->>> cyphertext = cyphertext[8:] # strip IV ->>> tostr(decrypt('#tripledes-cbc', key, cyphertext, iv)) +>>> ciphertext = encrypt('#tripledes-cbc', key, b'FOOBAR', iv) +>>> ciphertext = ciphertext[8:] # strip IV +>>> tostr(decrypt('#tripledes-cbc', key, ciphertext, iv)) 'FOOBAR' ->>> tostr(decrypt('#tripledes-cbc', key, iv + cyphertext)) +>>> tostr(decrypt('#tripledes-cbc', key, iv + ciphertext)) 'FOOBAR' |