Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c2b4673f
Commit
c2b4673f
authored
Jun 21, 2012
by
doko@ubuntu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md5_{init,process,done}: make static
parent
1e5be8cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Modules/md5module.c
Modules/md5module.c
+6
-4
No files found.
Modules/md5module.c
View file @
c2b4673f
...
...
@@ -210,7 +210,8 @@ static void md5_compress(struct md5_state *md5, unsigned char *buf)
Initialize the hash state
@param sha1 The hash state you wish to initialize
*/
void
md5_init
(
struct
md5_state
*
md5
)
static
void
md5_init
(
struct
md5_state
*
md5
)
{
assert
(
md5
!=
NULL
);
md5
->
state
[
0
]
=
0x67452301UL
;
...
...
@@ -227,8 +228,8 @@ void md5_init(struct md5_state *md5)
@param in The data to hash
@param inlen The length of the data (octets)
*/
void
md5_process
(
struct
md5_state
*
md5
,
const
unsigned
char
*
in
,
Py_ssize_t
inlen
)
static
void
md5_process
(
struct
md5_state
*
md5
,
const
unsigned
char
*
in
,
Py_ssize_t
inlen
)
{
Py_ssize_t
n
;
...
...
@@ -262,7 +263,8 @@ void md5_process(struct md5_state *md5,
@param sha1 The hash state
@param out [out] The destination of the hash (16 bytes)
*/
void
md5_done
(
struct
md5_state
*
md5
,
unsigned
char
*
out
)
static
void
md5_done
(
struct
md5_state
*
md5
,
unsigned
char
*
out
)
{
int
i
;
...
...
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