aboutsummaryrefslogtreecommitdiffstats
path: root/docs/development/custom-vectors/idea/verify_idea.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-12 08:41:26 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-12 08:41:26 -0700
commitb3231a171b4a44e8d09a5410afd017a2a81d5f45 (patch)
tree692de1125f80cbc332a48b19bbe1a8d6cb210e07 /docs/development/custom-vectors/idea/verify_idea.py
parent9b0705bc789610f598218d11da1da9711c820ed8 (diff)
parent3f6d7e7406589730cc579ad6aeaa0e753bb2fc28 (diff)
downloadcryptography-b3231a171b4a44e8d09a5410afd017a2a81d5f45.tar.gz
cryptography-b3231a171b4a44e8d09a5410afd017a2a81d5f45.tar.bz2
cryptography-b3231a171b4a44e8d09a5410afd017a2a81d5f45.zip
Merge pull request #788 from reaperhulk/vector-script-should-work
fix vector generation/verification scripts for IDEA
Diffstat (limited to 'docs/development/custom-vectors/idea/verify_idea.py')
-rw-r--r--docs/development/custom-vectors/idea/verify_idea.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/development/custom-vectors/idea/verify_idea.py b/docs/development/custom-vectors/idea/verify_idea.py
index f7e22763..89713c80 100644
--- a/docs/development/custom-vectors/idea/verify_idea.py
+++ b/docs/development/custom-vectors/idea/verify_idea.py
@@ -18,7 +18,7 @@ def encrypt(mode, key, iv, plaintext):
def verify_vectors(mode, filename):
with open(filename, "r") as f:
- vector_file = f.read()
+ vector_file = f.read().splitlines()
vectors = load_nist_vectors(vector_file)
for vector in vectors: