From 83e563e6a8b8f20925e96e7b792e6543d9888531 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 6 May 2015 10:56:31 -0400 Subject: Modify ECDH Test vector loader for KDF vectors Also add tests for the new vectors Signed-off-by: Simo Sorce --- tests/utils.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/utils.py') diff --git a/tests/utils.py b/tests/utils.py index ab922c94..46d93646 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -739,8 +739,12 @@ def load_kasvs_ecdh_vectors(vector_data): data["IUT"]["x"] = int(line.split("=")[1], 16) elif line.startswith("QsIUTy = "): data["IUT"]["y"] = int(line.split("=")[1], 16) + elif line.startswith("OI = "): + data["OI"] = int(line.split("=")[1], 16) elif line.startswith("Z = "): data["Z"] = int(line.split("=")[1], 16) + elif line.startswith("DKM = "): + data["DKM"] = int(line.split("=")[1], 16) elif line.startswith("Result = "): result_str = line.split("=")[1].strip() match = result_rx.match(result_str) -- cgit v1.2.3