aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-10-13 14:45:21 -0400
committerSimo Sorce <simo@redhat.com>2015-10-13 14:50:17 -0400
commit6e3b155bb684bb036fba277756a0ca47ce551443 (patch)
tree00162870e409ccefde78b8dad6b1c9e463f62009 /tests/utils.py
parente69b975dd14f2981c288ffadc6d7f9fa225c4d6d (diff)
downloadcryptography-6e3b155bb684bb036fba277756a0ca47ce551443.tar.gz
cryptography-6e3b155bb684bb036fba277756a0ca47ce551443.tar.bz2
cryptography-6e3b155bb684bb036fba277756a0ca47ce551443.zip
Fix load_kasvs_ecdh_vectors() COUNT sourcing
COUNT is a decimal number in test files, but was erroneously read and converted as if the source was a hexadecimal number. Fix the loader and test the fix. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index cc3f9fcc..3970109e 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -722,7 +722,7 @@ def load_kasvs_ecdh_vectors(vector_data):
if line.startswith("["):
tag = line.split()[0][1:]
elif line.startswith("COUNT = "):
- data["COUNT"] = int(line.split("=")[1], 16)
+ data["COUNT"] = int(line.split("=")[1])
elif line.startswith("dsCAVS = "):
data["CAVS"]["d"] = int(line.split("=")[1], 16)
elif line.startswith("QsCAVSx = "):