From d4c5ccf79c7fd46d1f18f91a8b3a9b98ff328e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Thu, 25 Feb 2016 23:39:14 +0100 Subject: [PATCH] Use the kdf_rfc5869() function instead of kdf(). 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/ntor_ref.py b/src/test/ntor_ref.py index 767da57a9c..df065853f3 100755 --- a/src/test/ntor_ref.py +++ b/src/test/ntor_ref.py @@ -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")