/*
This file is part of GNUnet.
- Copyright (C) 2001 - 2011 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2001 - 2011 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
struct GNUNET_CADET_ConnectionCreate
{
/**
- * Type: GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE
+ * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE
*
* Size: sizeof (struct GNUNET_CADET_ConnectionCreate) +
* path_length * sizeof (struct GNUNET_PeerIdentity)
struct GNUNET_CADET_ConnectionACK
{
/**
- * Type: GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK
+ * Type: #GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK
*/
struct GNUNET_MessageHeader header;
struct GNUNET_CADET_KX
{
/**
- * Type: GNUNET_MESSAGE_TYPE_CADET_KX.
+ * Type: #GNUNET_MESSAGE_TYPE_CADET_KX.
*/
struct GNUNET_MessageHeader header;
};
-
/**
- * Message for encapsulation of a Key eXchange message in a connection.
+ * Flags to be used in GNUNET_CADET_AX_KX.
*/
-struct GNUNET_CADET_AX_KX
-{
- /**
- * Type: GNUNET_MESSAGE_TYPE_CADET_AX_KX.
- */
- struct GNUNET_MessageHeader header;
+enum GNUNET_CADET_AX_KX_Flags {
/**
* Should the peer reply with its KX details?
*/
- uint32_t force_reply;
+ GNUNET_CADET_AX_KX_FLAG_NONE = 0,
/**
- * An EdDSA signature of the permanent ECDH key with the Peer's ID key.
+ * The peer should reply with its KX details?
*/
- struct GNUNET_CRYPTO_EddsaSignature signature;
+ GNUNET_CADET_AX_KX_FLAG_FORCE_REPLY = 1
+};
+
+/**
+ * Message for encapsulation of a Key eXchange message in a connection.
+ */
+struct GNUNET_CADET_AX_KX
+{
/**
- * Information about what is being signed (@a permanent_key).
+ * Type: #GNUNET_MESSAGE_TYPE_CADET_AX_KX.
*/
- struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
+ struct GNUNET_MessageHeader header;
/**
- * Sender's permanent_key public ECC key encoded in a
- * format suitable for network transmission, as created
- * using 'gcry_sexp_sprint'.
+ * Flags for the key exchange in NBO, based on
+ * `enum GNUNET_CADET_AX_KX_Flags`.
*/
- struct GNUNET_CRYPTO_EcdhePublicKey permanent_key;
+ uint32_t flags GNUNET_PACKED;
/**
* Sender's ephemeral public ECC key encoded in a
*/
struct GNUNET_CADET_Hash hmac;
+ /**************** AX_HEADER start ****************/
+
/**
* Number of messages sent with the current ratchet key.
*/
*/
struct GNUNET_CRYPTO_EcdhePublicKey DHRs;
+ /**************** AX_HEADER end ****************/
+
/**
* Encrypted content follows.
*/