aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-30 10:38:52 +0200
committerSimon Warta <[email protected]>2015-06-30 10:38:52 +0200
commitabe4c5c8d9b88aafa6f8b745f9100d4dbd754e20 (patch)
tree295eafb79cab7843888133abbad07fb983915520 /src/lib/block
parentb90187419f64b6d38d19c888985d58f902336677 (diff)
parent1de5fc1419add86884df97580d7a2e745ad43bff (diff)
Merge pull request #154 from webmaster128/bounds-fixes
Remainings fixes before Botan runs fine in debug mode
Diffstat (limited to 'src/lib/block')
-rw-r--r--src/lib/block/serpent/serpent.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/serpent/serpent.cpp b/src/lib/block/serpent/serpent.cpp
index 0fd76ce8f..b809e602c 100644
--- a/src/lib/block/serpent/serpent.cpp
+++ b/src/lib/block/serpent/serpent.cpp
@@ -195,7 +195,7 @@ void Serpent::key_schedule(const byte key[], size_t length)
SBoxE6(W[128],W[129],W[130],W[131]); SBoxE5(W[132],W[133],W[134],W[135]);
SBoxE4(W[136],W[137],W[138],W[139]);
- round_key.assign(&W[8], &W[140]);
+ round_key.assign(W.begin() + 8, W.end());
}
void Serpent::clear()