[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Use the kdf_rfc5869() function instead of kdf().
commit d4c5ccf79c7fd46d1f18f91a8b3a9b98ff328e45
Author: Alexander Færøy <ahf@xxxxxxx>
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")
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits