Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
2a15e594
Commit
2a15e594
authored
10 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
MD(4|5): make the MD4_* and MD5_* functions static
parent
d557da5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/md4.c
+6
-6
6 additions, 6 deletions
lib/md4.c
lib/md5.c
+6
-6
6 additions, 6 deletions
lib/md5.c
with
12 additions
and
12 deletions
lib/md4.c
+
6
−
6
View file @
2a15e594
...
...
@@ -58,9 +58,9 @@ typedef struct {
MD4_u32plus
block
[
16
];
}
MD4_CTX
;
extern
void
MD4_Init
(
MD4_CTX
*
ctx
);
extern
void
MD4_Update
(
MD4_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
);
extern
void
MD4_Final
(
unsigned
char
*
result
,
MD4_CTX
*
ctx
);
static
void
MD4_Init
(
MD4_CTX
*
ctx
);
static
void
MD4_Update
(
MD4_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
);
static
void
MD4_Final
(
unsigned
char
*
result
,
MD4_CTX
*
ctx
);
/*
* The basic MD4 functions.
...
...
@@ -196,7 +196,7 @@ static const void *body(MD4_CTX *ctx, const void *data, unsigned long size)
return
ptr
;
}
void
MD4_Init
(
MD4_CTX
*
ctx
)
static
void
MD4_Init
(
MD4_CTX
*
ctx
)
{
ctx
->
a
=
0x67452301
;
ctx
->
b
=
0xefcdab89
;
...
...
@@ -207,7 +207,7 @@ void MD4_Init(MD4_CTX *ctx)
ctx
->
hi
=
0
;
}
void
MD4_Update
(
MD4_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
)
static
void
MD4_Update
(
MD4_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
)
{
MD4_u32plus
saved_lo
;
unsigned
long
used
,
available
;
...
...
@@ -241,7 +241,7 @@ void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size)
memcpy
(
ctx
->
buffer
,
data
,
size
);
}
void
MD4_Final
(
unsigned
char
*
result
,
MD4_CTX
*
ctx
)
static
void
MD4_Final
(
unsigned
char
*
result
,
MD4_CTX
*
ctx
)
{
unsigned
long
used
,
available
;
...
...
This diff is collapsed.
Click to expand it.
lib/md5.c
+
6
−
6
View file @
2a15e594
...
...
@@ -208,9 +208,9 @@ typedef struct {
MD5_u32plus
block
[
16
];
}
MD5_CTX
;
extern
void
MD5_Init
(
MD5_CTX
*
ctx
);
extern
void
MD5_Update
(
MD5_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
);
extern
void
MD5_Final
(
unsigned
char
*
result
,
MD5_CTX
*
ctx
);
static
void
MD5_Init
(
MD5_CTX
*
ctx
);
static
void
MD5_Update
(
MD5_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
);
static
void
MD5_Final
(
unsigned
char
*
result
,
MD5_CTX
*
ctx
);
/*
* The basic MD5 functions.
...
...
@@ -368,7 +368,7 @@ static const void *body(MD5_CTX *ctx, const void *data, unsigned long size)
return
ptr
;
}
void
MD5_Init
(
MD5_CTX
*
ctx
)
static
void
MD5_Init
(
MD5_CTX
*
ctx
)
{
ctx
->
a
=
0x67452301
;
ctx
->
b
=
0xefcdab89
;
...
...
@@ -379,7 +379,7 @@ void MD5_Init(MD5_CTX *ctx)
ctx
->
hi
=
0
;
}
void
MD5_Update
(
MD5_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
)
static
void
MD5_Update
(
MD5_CTX
*
ctx
,
const
void
*
data
,
unsigned
long
size
)
{
MD5_u32plus
saved_lo
;
unsigned
long
used
,
available
;
...
...
@@ -413,7 +413,7 @@ void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size)
memcpy
(
ctx
->
buffer
,
data
,
size
);
}
void
MD5_Final
(
unsigned
char
*
result
,
MD5_CTX
*
ctx
)
static
void
MD5_Final
(
unsigned
char
*
result
,
MD5_CTX
*
ctx
)
{
unsigned
long
used
,
available
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment