Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
c8cf9b7c
Commit
c8cf9b7c
authored
Jul 16, 2021
by
longpanda
Browse files
Speedup md5sum/sha1sum/sha256sum/sha512sum command
parent
4c71d7c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GRUB2/MOD_SRC/grub-2.04/grub-core/commands/hashsum.c
GRUB2/MOD_SRC/grub-2.04/grub-core/commands/hashsum.c
+1
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/commands/hashsum.c
View file @
c8cf9b7c
...
@@ -69,7 +69,7 @@ hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result)
...
@@ -69,7 +69,7 @@ hash_file (grub_file_t file, const gcry_md_spec_t *hash, void *result)
grub_uint64_t
total
=
0
;
grub_uint64_t
total
=
0
;
void
*
context
;
void
*
context
;
grub_uint8_t
*
readbuf
;
grub_uint8_t
*
readbuf
;
#define BUF_SIZE
4096
#define BUF_SIZE
1024 * 1024
readbuf
=
grub_malloc
(
BUF_SIZE
);
readbuf
=
grub_malloc
(
BUF_SIZE
);
if
(
!
readbuf
)
if
(
!
readbuf
)
return
grub_errno
;
return
grub_errno
;
...
...
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