Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
1685fcf9
Commit
1685fcf9
authored
Sep 03, 1998
by
Niels Möller
Browse files
*** empty log message ***
Rev: src/read_packet.c:1.4
parent
3a5c41b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/read_packet.c
View file @
1685fcf9
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment