* grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
Add missing const attribute. * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]: Likewise. * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]: Likewise.
This commit is contained in:
parent
8e54b4b76a
commit
e5f4d2607a
4 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,12 @@
|
|||
2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
|
||||
Add missing const attribute.
|
||||
* grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
|
||||
Likewise.
|
||||
* grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
|
||||
Likewise.
|
||||
|
||||
2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
|
||||
|
|
|
@ -101,7 +101,8 @@ transform ( MD4_CONTEXT *ctx, const unsigned char *data )
|
|||
#ifdef WORDS_BIGENDIAN
|
||||
{
|
||||
int i;
|
||||
byte *p2, *p1;
|
||||
byte *p2;
|
||||
const byte *p1;
|
||||
for(i=0, p1=data, p2=(byte*)in; i < 16; i++, p2 += 4 )
|
||||
{
|
||||
p2[3] = *p1++;
|
||||
|
|
|
@ -92,7 +92,8 @@ transform ( MD5_CONTEXT *ctx, const unsigned char *data )
|
|||
#ifdef WORDS_BIGENDIAN
|
||||
{
|
||||
int i;
|
||||
byte *p2, *p1;
|
||||
byte *p2;
|
||||
const byte *p1;
|
||||
for(i=0, p1=data, p2=(byte*)correct_words; i < 16; i++, p2 += 4 )
|
||||
{
|
||||
p2[3] = *p1++;
|
||||
|
|
|
@ -169,7 +169,8 @@ transform ( RMD160_CONTEXT *hd, const unsigned char *data )
|
|||
u32 x[16];
|
||||
{
|
||||
int i;
|
||||
byte *p2, *p1;
|
||||
byte *p2;
|
||||
const byte *p1;
|
||||
for (i=0, p1=data, p2=(byte*)x; i < 16; i++, p2 += 4 )
|
||||
{
|
||||
p2[3] = *p1++;
|
||||
|
|
Loading…
Reference in a new issue