mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 22:58:50 +01:00
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().
This commit is contained in:
parent
c6858cb5fe
commit
d4c5ccf79c
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue