mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
(struct sha1_ctx): Use a word buffer, not a byte buffer,
so that we don't need to worry about alignment. All uses changed. This merges the 2005-10-28 md5 change into sha1.
This commit is contained in:
parent
1834ba06ac
commit
25962cd489
@ -1,6 +1,6 @@
|
||||
/* Declarations of functions and data types used for SHA1 sum
|
||||
library functions.
|
||||
Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 2000, 2001, 2003, 2005, 2006 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by the
|
||||
@ -33,7 +33,7 @@ struct sha1_ctx
|
||||
|
||||
uint32_t total[2];
|
||||
uint32_t buflen;
|
||||
char buffer[128] __attribute__ ((__aligned__ (__alignof__ (uint32_t))));
|
||||
uint32_t buffer[32];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user