diff options
author | Vladimir Serbinenko <phcoder@gmail.com> | 2013-04-18 13:37:49 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-04-18 13:37:49 +0200 |
commit | a412a949555db737bac87999403fcf526166effe (patch) | |
tree | 7811253a96f0fe6b726b418d580d046af567507b | |
parent | 8eab66ad6852ec985bfb1e7fec35981d5e31148a (diff) | |
download | libgcrypt-a412a949555db737bac87999403fcf526166effe.tar.gz |
Add some const attributes.
* cipher/md4.c (transform): Add const attribute.
* cipher/md5.c (transform): Ditto.
* cipher/rmd160.c (transform): Ditto.
--
This is the same as
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/3685
Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r-- | cipher/md4.c | 3 | ||||
-rw-r--r-- | cipher/md5.c | 3 | ||||
-rw-r--r-- | cipher/rmd160.c | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/cipher/md4.c b/cipher/md4.c index 8909ec4a..22fbf8d9 100644 --- a/cipher/md4.c +++ b/cipher/md4.c @@ -100,7 +100,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++; diff --git a/cipher/md5.c b/cipher/md5.c index 4793882a..a98678a9 100644 --- a/cipher/md5.c +++ b/cipher/md5.c @@ -91,7 +91,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++; diff --git a/cipher/rmd160.c b/cipher/rmd160.c index 552cff92..179a4d96 100644 --- a/cipher/rmd160.c +++ b/cipher/rmd160.c @@ -168,7 +168,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++; |