diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-11 18:13:37 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-03-11 18:13:37 -0400 |
commit | 3f6d7e7406589730cc579ad6aeaa0e753bb2fc28 (patch) | |
tree | bb517ef565b79f68222162674e5fb03ac13cdf83 | |
parent | 80b8cfa2f31fb3a19308e7aebce58fb8d1bc0f4a (diff) | |
download | cryptography-3f6d7e7406589730cc579ad6aeaa0e753bb2fc28.tar.gz cryptography-3f6d7e7406589730cc579ad6aeaa0e753bb2fc28.tar.bz2 cryptography-3f6d7e7406589730cc579ad6aeaa0e753bb2fc28.zip |
fix vector generation/verification scripts for IDEA
Some small style fixes on final review were not re-verified before
merge.
-rw-r--r-- | docs/development/custom-vectors/idea/generate_idea.py | 2 | ||||
-rw-r--r-- | docs/development/custom-vectors/idea/verify_idea.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/development/custom-vectors/idea/generate_idea.py b/docs/development/custom-vectors/idea/generate_idea.py index 544d7ea4..70b9f87f 100644 --- a/docs/development/custom-vectors/idea/generate_idea.py +++ b/docs/development/custom-vectors/idea/generate_idea.py @@ -18,7 +18,7 @@ def encrypt(mode, key, iv, plaintext): def build_vectors(mode, filename): with open(filename, "r") as f: - vector_file = f.read() + vector_file = f.read().splitlines() count = 0 output = [] 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: |