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
d53fec04
Commit
d53fec04
authored
Jul 02, 2019
by
Antonin Décimo
Committed by
Juliusz Chroboczek
May 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AUTH_TYPE_* consistently.
parent
a1afd51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
hmac.c
hmac.c
+2
-2
No files found.
hmac.c
View file @
d53fec04
...
@@ -116,7 +116,7 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
...
@@ -116,7 +116,7 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
DO_HTONS
(
port
,
(
unsigned
short
)
protocol_port
);
DO_HTONS
(
port
,
(
unsigned
short
)
protocol_port
);
switch
(
key
->
type
)
{
switch
(
key
->
type
)
{
case
1
:
{
case
AUTH_TYPE_SHA256
:
{
SHA256Context
inner
,
outer
;
SHA256Context
inner
,
outer
;
unsigned
char
ipad
[
64
],
ihash
[
32
],
opad
[
64
];
unsigned
char
ipad
[
64
],
ihash
[
32
],
opad
[
64
];
if
(
key
->
len
!=
32
)
if
(
key
->
len
!=
32
)
...
@@ -174,7 +174,7 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
...
@@ -174,7 +174,7 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
return
-
1
;
return
-
1
;
return
32
;
return
32
;
}
}
case
2
:
{
case
AUTH_TYPE_BLAKE2S
:
{
blake2s_state
s
;
blake2s_state
s
;
if
(
key
->
len
!=
16
)
if
(
key
->
len
!=
16
)
return
-
1
;
return
-
1
;
...
...
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