summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha256.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-07-25 09:37:35 +0200
committerMichael Vogt <egon@bottom>2006-07-25 09:37:35 +0200
commit67fefcfec18c9ada43a07e5fffae6b3a5c693388 (patch)
treee155112df729af1446676a77752274eda30423e0 /apt-pkg/contrib/sha256.cc
parentee8a0bbceed82c8bfd45e04fe5ca1a7b472e6244 (diff)
parentfab58e35bd7ea1825d522dc1467dff66bc974b74 (diff)
* merged with mainline
Diffstat (limited to 'apt-pkg/contrib/sha256.cc')
-rw-r--r--apt-pkg/contrib/sha256.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/apt-pkg/contrib/sha256.cc b/apt-pkg/contrib/sha256.cc
index ad2ddb2d3..b75ce8a84 100644
--- a/apt-pkg/contrib/sha256.cc
+++ b/apt-pkg/contrib/sha256.cc
@@ -61,10 +61,10 @@ static inline u32 Maj(u32 x, u32 y, u32 z)
static inline void LOAD_OP(int I, u32 *W, const u8 *input)
{
- W[I] = ( ((u32) input[I + 0] << 24)
- | ((u32) input[I + 1] << 16)
- | ((u32) input[I + 2] << 8)
- | ((u32) input[I + 3]));
+ W[I] = ( ((u32) input[I * 4 + 0] << 24)
+ | ((u32) input[I * 4 + 1] << 16)
+ | ((u32) input[I * 4 + 2] << 8)
+ | ((u32) input[I * 4 + 3]));
}
static inline void BLEND_OP(int I, u32 *W)