diff options
author | David Reid <dreid@dreid.org> | 2014-01-29 15:09:49 -0800 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-01-29 15:09:49 -0800 |
commit | b2ff87737ca27a171ce0034e100841782d19dd7b (patch) | |
tree | fde20b858f07d70a1dcc3f8f2b78bc02480630e5 /tests/utils.py | |
parent | babc4d50f42edc1e16c414e4008114d882b4c999 (diff) | |
parent | 0b181182aef574c436a92a175937af32e54a2378 (diff) | |
download | cryptography-b2ff87737ca27a171ce0034e100841782d19dd7b.tar.gz cryptography-b2ff87737ca27a171ce0034e100841782d19dd7b.tar.bz2 cryptography-b2ff87737ca27a171ce0034e100841782d19dd7b.zip |
Merge pull request #520 from reaperhulk/pbkdf2-openssl
PBKDF2 Support (OpenSSL backend)
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
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 = {} |