Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobdigest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-blobdigest
Commits
3742f5b9
Unverified
Commit
3742f5b9
authored
Apr 12, 2022
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make array declarations consistent
parent
e62caede
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
md5.c
src/md5.c
+1
-1
sha256.c
src/sha256.c
+1
-1
No files found.
src/md5.c
View file @
3742f5b9
...
...
@@ -206,7 +206,7 @@ void rhash_md5_update(md5_ctx *ctx, const unsigned char* msg, size_t size)
* @param ctx the algorithm context containing current hashing state
* @param result calculated hash in binary form
*/
void
rhash_md5_final
(
md5_ctx
*
ctx
,
unsigned
char
*
result
)
void
rhash_md5_final
(
md5_ctx
*
ctx
,
unsigned
char
result
[
16
]
)
{
unsigned
index
=
((
unsigned
)
ctx
->
length
&
63
)
>>
2
;
unsigned
shift
=
((
unsigned
)
ctx
->
length
&
3
)
*
8
;
...
...
src/sha256.c
View file @
3742f5b9
...
...
@@ -211,7 +211,7 @@ void rhash_sha256_update(sha256_ctx *ctx, const unsigned char *msg, size_t size)
* @param ctx the algorithm context containing current hashing state
* @param result calculated hash in binary form
*/
void
rhash_sha256_final
(
sha256_ctx
*
ctx
,
unsigned
char
*
result
)
void
rhash_sha256_final
(
sha256_ctx
*
ctx
,
unsigned
char
result
[
32
]
)
{
size_t
index
=
((
unsigned
)
ctx
->
length
&
63
)
>>
2
;
unsigned
shift
=
((
unsigned
)
ctx
->
length
&
3
)
*
8
;
...
...
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