diff options
Diffstat (limited to 'docs/development/custom-vectors')
-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: |