mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
When debugging, dump key material
svn:r323
This commit is contained in:
parent
9182537238
commit
debfe65faf
@ -523,6 +523,9 @@ onion_skin_server_handshake(char *onion_skin, /* DH_ONIONSKIN_LEN bytes long */
|
||||
memcpy(key_out, buf+len-key_out_len, key_out_len);
|
||||
|
||||
#ifdef DEBUG_ONION_SKINS
|
||||
printf("Server: key material:");
|
||||
PA(buf, DH_KEY_LEN);
|
||||
puts("");
|
||||
printf("Server: keys out:");
|
||||
PA(key_out, key_out_len);
|
||||
puts("");
|
||||
@ -573,6 +576,9 @@ onion_skin_client_handshake(crypto_dh_env_t *handshake_state,
|
||||
memcpy(key_out, key_material+len-key_out_len, key_out_len);
|
||||
|
||||
#ifdef DEBUG_ONION_SKINS
|
||||
printf("Client: key material:");
|
||||
PA(key_material, DH_KEY_LEN);
|
||||
puts("");
|
||||
printf("Client: keys out:");
|
||||
PA(key_out, key_out_len);
|
||||
puts("");
|
||||
|
Loading…
Reference in New Issue
Block a user