Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5c4ef8ee
Commit
5c4ef8ee
authored
Jan 29, 2004
by
James Morris
Committed by
David S. Miller
Jan 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CRYPTO]: Make padding[] array static in sha{256,512}_final().
Also happens to work around a GCC bug.
parent
e2a5a63a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
crypto/sha256.c
crypto/sha256.c
+1
-1
crypto/sha512.c
crypto/sha512.c
+1
-1
No files found.
crypto/sha256.c
View file @
5c4ef8ee
...
@@ -295,7 +295,7 @@ static void sha256_final(void* ctx, u8 *out)
...
@@ -295,7 +295,7 @@ static void sha256_final(void* ctx, u8 *out)
u8
bits
[
8
];
u8
bits
[
8
];
unsigned
int
index
,
pad_len
,
t
;
unsigned
int
index
,
pad_len
,
t
;
int
i
,
j
;
int
i
,
j
;
const
u8
padding
[
64
]
=
{
0x80
,
};
static
u8
padding
[
64
]
=
{
0x80
,
};
/* Save number of bits */
/* Save number of bits */
t
=
sctx
->
count
[
0
];
t
=
sctx
->
count
[
0
];
...
...
crypto/sha512.c
View file @
5c4ef8ee
...
@@ -249,7 +249,7 @@ sha512_final(void *ctx, u8 *hash)
...
@@ -249,7 +249,7 @@ sha512_final(void *ctx, u8 *hash)
{
{
struct
sha512_ctx
*
sctx
=
ctx
;
struct
sha512_ctx
*
sctx
=
ctx
;
const
static
u8
padding
[
128
]
=
{
0x80
,
};
static
u8
padding
[
128
]
=
{
0x80
,
};
u32
t
;
u32
t
;
u64
t2
;
u64
t2
;
...
...
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