From 1de5fc1419add86884df97580d7a2e745ad43bff Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Mon, 29 Jun 2015 14:02:37 +0200 Subject: More changes for use with debug STL --- src/lib/block/serpent/serpent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/block') 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() -- cgit v1.2.3