diff options
author | David Reid <dreid@dreid.org> | 2014-01-28 10:17:46 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-02-03 10:05:27 -0800 |
commit | 3ddf989934884a4ca02358332b6e81ebb6727fbf (patch) | |
tree | 106fec9f1ad84613b23c1a1beec3d549ca7cd822 /tests | |
parent | 0d492db1be3e287b5f49a5ce408196401bdd0a2b (diff) | |
download | cryptography-3ddf989934884a4ca02358332b6e81ebb6727fbf.tar.gz cryptography-3ddf989934884a4ca02358332b6e81ebb6727fbf.tar.bz2 cryptography-3ddf989934884a4ca02358332b6e81ebb6727fbf.zip |
Remove load_hkdf_vectors which snuck in with a rebase.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/utils.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/utils.py b/tests/utils.py index 850d436f..5c0e524f 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -191,33 +191,3 @@ def load_hash_vectors(vector_data): else: raise ValueError("Unknown line in hash vector") return vectors - - -def load_hkdf_vectors(vector_data): - vectors = [] - - ikm = salt = info = length = prk = okm = None - - for line in vector_data: - line = line.strip() - - if not line or line.startswith("#"): - continue - - elif line.startswith("IKM"): - ikm = line.split(" = ")[1].encode("ascii") - elif line.startswith("salt"): - salt = line.split(" =")[1].strip().encode("ascii") - elif line.startswith("info"): - info = line.split(" =")[1].strip().encode("ascii") - elif line.startswith("L"): - length = int(line.split(" = ")[1]) - elif line.startswith("PRK"): - prk = line.split(" = ")[1].encode("ascii") - elif line.startswith("OKM"): - okm = line.split(" = ")[1].encode("ascii") - - vectors.append((ikm, salt, info, length, prk, okm)) - ikm = salt = info = length = prk = okm = None - - return vectors |