diff options
Diffstat (limited to 'src/core/gnunet-service-core_kx.c')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 1fce2e528..31f5bb494 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -207,7 +207,7 @@ struct EncryptedMessage | |||
207 | * (excluding this value itself) will be encrypted and authenticated. | 207 | * (excluding this value itself) will be encrypted and authenticated. |
208 | * ENCRYPTED_HEADER_SIZE must be set to the offset of the *next* field. | 208 | * ENCRYPTED_HEADER_SIZE must be set to the offset of the *next* field. |
209 | */ | 209 | */ |
210 | GNUNET_HashCode hmac; | 210 | struct GNUNET_HashCode hmac; |
211 | 211 | ||
212 | /** | 212 | /** |
213 | * Sequence number, in network byte order. This field | 213 | * Sequence number, in network byte order. This field |
@@ -1513,7 +1513,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, | |||
1513 | { | 1513 | { |
1514 | const struct EncryptedMessage *m; | 1514 | const struct EncryptedMessage *m; |
1515 | struct EncryptedMessage *pt; /* plaintext */ | 1515 | struct EncryptedMessage *pt; /* plaintext */ |
1516 | GNUNET_HashCode ph; | 1516 | struct GNUNET_HashCode ph; |
1517 | uint32_t snum; | 1517 | uint32_t snum; |
1518 | struct GNUNET_TIME_Absolute t; | 1518 | struct GNUNET_TIME_Absolute t; |
1519 | struct GNUNET_CRYPTO_AesInitializationVector iv; | 1519 | struct GNUNET_CRYPTO_AesInitializationVector iv; |
@@ -1550,7 +1550,7 @@ GSC_KX_handle_encrypted_message (struct GSC_KeyExchangeInfo *kx, | |||
1550 | kx->decrypt_key_created); | 1550 | kx->decrypt_key_created); |
1551 | GNUNET_CRYPTO_hmac (&auth_key, &m->sequence_number, | 1551 | GNUNET_CRYPTO_hmac (&auth_key, &m->sequence_number, |
1552 | size - ENCRYPTED_HEADER_SIZE, &ph); | 1552 | size - ENCRYPTED_HEADER_SIZE, &ph); |
1553 | if (0 != memcmp (&ph, &m->hmac, sizeof (GNUNET_HashCode))) | 1553 | if (0 != memcmp (&ph, &m->hmac, sizeof (struct GNUNET_HashCode))) |
1554 | { | 1554 | { |
1555 | /* checksum failed */ | 1555 | /* checksum failed */ |
1556 | GNUNET_break_op (0); | 1556 | GNUNET_break_op (0); |