Skip to content
Snippets Groups Projects
Commit 1685fcf9 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: src/read_packet.c:1.4
parent 3a5c41b8
No related branches found
No related tags found
No related merge requests found
...@@ -74,8 +74,8 @@ int do_read_packet(struct read_handler **h, ...@@ -74,8 +74,8 @@ int do_read_packet(struct read_handler **h,
UINT8 s[4]; UINT8 s[4];
WRITE_UINT32(s, closure->sequence_number); WRITE_UINT32(s, closure->sequence_number);
UPDATE(closure->mac, 4, s); HASH_UPDATE(closure->mac, 4, s);
UPDATE(closure->mac, HASH_UPDATE(closure->mac,
closure->buffer->length, closure->buffer->length,
closure->buffer->data); closure->buffer->data);
} }
...@@ -125,10 +125,10 @@ int do_read_packet(struct read_handler **h, ...@@ -125,10 +125,10 @@ int do_read_packet(struct read_handler **h,
if (closure->mac) if (closure->mac)
{ {
UPDATE(closure->mac, HASH_UPDATE(closure->mac,
closure->buffer->length - closure->crypt_pos, closure->buffer->length - closure->crypt_pos,
closure->buffer->data + closure->crypt_pos); closure->buffer->data + closure->crypt_pos);
DIGEST(closure->mac, HASH_DIGEST(closure->mac,
closure->computed_mac); closure->computed_mac);
} }
closure->state = WAIT_MAC; closure->state = WAIT_MAC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment