aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-27 21:04:03 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-28 11:18:26 -0600
commit1050ddf44f0713a587cd0ba239e23c95064a39bc (patch)
tree336c1329b82370fda3050b8c787ed8a85d32dc1b /tests/utils.py
parent1f8cd620cfbb854b0dfcdbf89c140160a8caba13 (diff)
downloadcryptography-1050ddf44f0713a587cd0ba239e23c95064a39bc.tar.gz
cryptography-1050ddf44f0713a587cd0ba239e23c95064a39bc.tar.bz2
cryptography-1050ddf44f0713a587cd0ba239e23c95064a39bc.zip
PBKDF2 support for OpenSSL backend
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 507bc421..5c0e524f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -89,6 +89,10 @@ def load_nist_vectors(vector_data):
# Build our data using a simple Key = Value format
name, value = [c.strip() for c in line.split("=")]
+ # Some tests (PBKDF2) contain \0, which should be interpreted as a
+ # null character rather than literal.
+ value = value.replace("\\0", "\0")
+
# COUNT is a special token that indicates a new block of data
if name.upper() == "COUNT":
test_data = {}