mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
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>
This commit is contained in:
parent
e69b975dd1
commit
6e3b155bb6
2 changed files with 3 additions and 3 deletions
|
|
@ -3363,7 +3363,7 @@ def test_load_kasvs_ecdh_kdf_vectors():
|
|||
[EB - SHA224]
|
||||
|
||||
|
||||
COUNT = 0
|
||||
COUNT = 50
|
||||
dsCAVS = 540904b67b3716823dd621ed72ad3dbc615887b4f56f910b78a57199
|
||||
QsCAVSx = 28e5f3a72d8f6b8499dd1bcdfceafcecec68a0d715789bcf4b55fe15
|
||||
QsCAVSy = 8c8006a7da7c1a19f5328d7e865522b0c0dfb9a29b2c46dc96590d2a
|
||||
|
|
@ -3385,7 +3385,7 @@ ffdfa60dd7
|
|||
expected = [
|
||||
{'errno': 12,
|
||||
'fail': True,
|
||||
'COUNT': 0,
|
||||
'COUNT': 50,
|
||||
'CAVS': {
|
||||
'd': int("540904b67b3716823dd621ed72ad3dbc615887b4f56f910b"
|
||||
"78a57199", 16),
|
||||
|
|
|
|||
|
|
@ -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 = "):
|
||||
|
|
|
|||
Loading…
Reference in a new issue