]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use the kdf_rfc5869() function instead of kdf().
authorAlexander Færøy <ahf@0x90.dk>
Thu, 25 Feb 2016 22:39:14 +0000 (23:39 +0100)
committerNick Mathewson <nickm@torproject.org>
Sun, 28 Feb 2016 14:24:59 +0000 (15:24 +0100)
This patch fixes an issue in "ntor_ref.py gen_kdf_vectors" where the
script tries to call the undefined function kdf().

src/test/ntor_ref.py

index 767da57a9c7186e992e395a0f26ae14c7d1f0cdd..df065853f36be866e16a60fa988b976b0b42a7ce 100755 (executable)
@@ -322,7 +322,7 @@ def kdf_vectors():
     """
     import binascii
     def kdf_vec(inp):
-        k = kdf(inp, T_KEY, M_EXPAND, 100)
+        k = kdf_rfc5869(inp, T_KEY, M_EXPAND, 100)
         print(repr(inp), "\n\""+ binascii.b2a_hex(k)+ "\"")
     kdf_vec("")
     kdf_vec("Tor")