Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
1544810a
Commit
1544810a
authored
5 years ago
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ordering of fields in pseudo-header.
parent
10e91f93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
hmac.c
hmac.c
+4
-4
No files found.
hmac.c
View file @
1544810a
...
@@ -132,13 +132,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
...
@@ -132,13 +132,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
if
(
rc
<
0
)
if
(
rc
<
0
)
return
-
1
;
return
-
1
;
rc
=
SHA256Input
(
&
inner
,
dst
,
16
);
rc
=
SHA256Input
(
&
inner
,
src
,
16
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
return
-
1
;
return
-
1
;
rc
=
SHA256Input
(
&
inner
,
port
,
2
);
rc
=
SHA256Input
(
&
inner
,
port
,
2
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
return
-
1
;
return
-
1
;
rc
=
SHA256Input
(
&
inner
,
src
,
16
);
rc
=
SHA256Input
(
&
inner
,
dst
,
16
);
if
(
rc
!=
0
)
if
(
rc
!=
0
)
return
-
1
;
return
-
1
;
rc
=
SHA256Input
(
&
inner
,
port
,
2
);
rc
=
SHA256Input
(
&
inner
,
port
,
2
);
...
@@ -181,13 +181,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
...
@@ -181,13 +181,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
rc
=
blake2s_init_key
(
&
s
,
16
,
key
->
value
,
key
->
len
);
rc
=
blake2s_init_key
(
&
s
,
16
,
key
->
value
,
key
->
len
);
if
(
rc
<
0
)
if
(
rc
<
0
)
return
-
1
;
return
-
1
;
rc
=
blake2s_update
(
&
s
,
dst
,
16
);
rc
=
blake2s_update
(
&
s
,
src
,
16
);
if
(
rc
<
0
)
if
(
rc
<
0
)
return
-
1
;
return
-
1
;
rc
=
blake2s_update
(
&
s
,
port
,
2
);
rc
=
blake2s_update
(
&
s
,
port
,
2
);
if
(
rc
<
0
)
if
(
rc
<
0
)
return
-
1
;
return
-
1
;
rc
=
blake2s_update
(
&
s
,
src
,
16
);
rc
=
blake2s_update
(
&
s
,
dst
,
16
);
if
(
rc
<
0
)
if
(
rc
<
0
)
return
-
1
;
return
-
1
;
rc
=
blake2s_update
(
&
s
,
port
,
2
);
rc
=
blake2s_update
(
&
s
,
port
,
2
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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