const struct GNUNET_PeerIdentity *pid;
int is_alice;
+ LOG (GNUNET_ERROR_TYPE_INFO, "<=== AX_KX on %s\n", GCT_2s (t));
+
if (NULL == t->ax)
{
/* Something is wrong if ax is NULL. Whose fault it is? */
return;
}
+ LOG (GNUNET_ERROR_TYPE_INFO, " is Alice? %s\n", is_alice ? "YES" : "NO");
+
ax = t->ax;
ax->DHRr = msg->ratchet_key;
pub = &msg->ephemeral_key; /* B0 or A0 */
GNUNET_CRYPTO_ecc_ecdh (priv, pub, &key_material[2]);
+ #if DUMP_KEYS_TO_STDERR
+ {
+ unsigned int i;
+ for (i = 0; i < 3; i++)
+ LOG (GNUNET_ERROR_TYPE_INFO, "km[%u]: %s\n",
+ i, GNUNET_h2s (&key_material[i]));
+ }
+ #endif
+
/* KDF */
GNUNET_CRYPTO_kdf (keys, sizeof (keys),
salt, sizeof (salt),
LOG (GNUNET_ERROR_TYPE_DEBUG, " cstate triggered kx\n");
GCT_send_ax_kx (t);
}
+ else
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "estate %s\n", estate2s (t->estate));
+ }
}
t->cstate = cstate;