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
......@@ -74,10 +74,10 @@ int do_read_packet(struct read_handler **h,
UINT8 s[4];
WRITE_UINT32(s, closure->sequence_number);
UPDATE(closure->mac, 4, s);
UPDATE(closure->mac,
closure->buffer->length,
closure->buffer->data);
HASH_UPDATE(closure->mac, 4, s);
HASH_UPDATE(closure->mac,
closure->buffer->length,
closure->buffer->data);
}
/* Allocate full packet */
......@@ -125,10 +125,10 @@ int do_read_packet(struct read_handler **h,
if (closure->mac)
{
UPDATE(closure->mac,
HASH_UPDATE(closure->mac,
closure->buffer->length - closure->crypt_pos,
closure->buffer->data + closure->crypt_pos);
DIGEST(closure->mac,
HASH_DIGEST(closure->mac,
closure->computed_mac);
}
closure->state = WAIT_MAC;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment