summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/sha256.cc
diff options
context:
space:
mode:
authorMichael Vogt <egon@bottom>2006-07-26 16:13:02 +0200
committerMichael Vogt <egon@bottom>2006-07-26 16:13:02 +0200
commit961c7214468e3fce4deb432d3a0b31b2510aaafe (patch)
treed10fab8cffdf97d5efcd85a503e4906771c39c5e /apt-pkg/contrib/sha256.cc
parentb28fffc2825b807a26513f2ac5f34cb6e064acbf (diff)
parent4577fda2b5f2b21f5400d10f4db71a8095f0df58 (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)