diff options
author | lloyd <[email protected]> | 2009-09-29 18:14:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-09-29 18:14:17 +0000 |
commit | 201015e56372c1937574b5dd9687ee49cc0f5d25 (patch) | |
tree | 03f9aca5dd0c1d582f186839b31b1fbbb578f7f3 /src/block/serpent_ia32/serp_ia32.cpp | |
parent | 2c817e542ab946c8d1b38f0ebb52c624a8076169 (diff) |
Use load_le instead of make_u32bit in Serpent x86 key schedule code
Diffstat (limited to 'src/block/serpent_ia32/serp_ia32.cpp')
-rw-r--r-- | src/block/serpent_ia32/serp_ia32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/block/serpent_ia32/serp_ia32.cpp b/src/block/serpent_ia32/serp_ia32.cpp index 997bec2fc..721584b18 100644 --- a/src/block/serpent_ia32/serp_ia32.cpp +++ b/src/block/serpent_ia32/serp_ia32.cpp @@ -51,7 +51,7 @@ void Serpent_IA32::key_schedule(const byte key[], u32bit length) { SecureBuffer<u32bit, 140> W; for(u32bit j = 0; j != length / 4; ++j) - W[j] = make_u32bit(key[4*j+3], key[4*j+2], key[4*j+1], key[4*j]); + W[j] = load_le<u32bit>(key, j); W[length / 4] |= u32bit(1) << ((length%4)*8); botan_serpent_ia32_key_schedule(W); |