[tor-commits] [tor/master] Use the kdf_rfc5869() function instead of kdf().
nickm at torproject.org
nickm at torproject.org
Sun Feb 28 14:25:05 UTC 2016
commit d4c5ccf79c7fd46d1f18f91a8b3a9b98ff328e45
Author: Alexander Færøy <ahf at 0x90.dk>
Date: Thu Feb 25 23:39:14 2016 +0100
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 767da57..df06585 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")
More information about the tor-commits
mailing list