From: Alexander Færøy Date: Thu, 25 Feb 2016 22:39:14 +0000 (+0100) Subject: Use the kdf_rfc5869() function instead of kdf(). X-Git-Tag: tor-0.2.8.2-alpha~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4c5ccf79c7fd46d1f18f91a8b3a9b98ff328e45;p=thirdparty%2Ftor.git 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(). --- 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")