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
1e5be8cf
Commit
1e5be8cf
authored
Jun 21, 2012
by
doko@ubuntu.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sha1_{init,process,done}: make static
parent
1e3398a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Modules/sha1module.c
Modules/sha1module.c
+6
-3
No files found.
Modules/sha1module.c
View file @
1e5be8cf
...
...
@@ -184,7 +184,8 @@ static void sha1_compress(struct sha1_state *sha1, unsigned char *buf)
Initialize the hash state
@param sha1 The hash state you wish to initialize
*/
void
sha1_init
(
struct
sha1_state
*
sha1
)
static
void
sha1_init
(
struct
sha1_state
*
sha1
)
{
assert
(
sha1
!=
NULL
);
sha1
->
state
[
0
]
=
0x67452301UL
;
...
...
@@ -202,7 +203,8 @@ void sha1_init(struct sha1_state *sha1)
@param in The data to hash
@param inlen The length of the data (octets)
*/
void
sha1_process
(
struct
sha1_state
*
sha1
,
static
void
sha1_process
(
struct
sha1_state
*
sha1
,
const
unsigned
char
*
in
,
Py_ssize_t
inlen
)
{
Py_ssize_t
n
;
...
...
@@ -237,7 +239,8 @@ void sha1_process(struct sha1_state *sha1,
@param sha1 The hash state
@param out [out] The destination of the hash (20 bytes)
*/
void
sha1_done
(
struct
sha1_state
*
sha1
,
unsigned
char
*
out
)
static
void
sha1_done
(
struct
sha1_state
*
sha1
,
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