aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/camellia
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-28 13:47:37 +0200
committerSimon Warta <[email protected]>2015-06-28 13:47:37 +0200
commitdc5716db695462217390ddfc7c9189294493600a (patch)
tree43c90714200839d62b0211543bb89c7541167d6c /src/lib/block/camellia
parent7f904a4019a27628c145724e8c0bfcbfacb18e11 (diff)
parentd007082daa03ddebd124c38393f42793a1b50811 (diff)
Merge pull request #144 from webmaster128/bounds-check5
Bounds check round 5
Diffstat (limited to 'src/lib/block/camellia')
-rw-r--r--src/lib/block/camellia/camellia.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/camellia/camellia.cpp b/src/lib/block/camellia/camellia.cpp
index 5f04c9d12..887878910 100644
--- a/src/lib/block/camellia/camellia.cpp
+++ b/src/lib/block/camellia/camellia.cpp
@@ -127,7 +127,7 @@ void encrypt(const byte in[], byte out[], size_t blocks,
u64bit D1 = load_be<u64bit>(in, 0);
u64bit D2 = load_be<u64bit>(in, 1);
- const u64bit* K = &SK[0];
+ const u64bit* K = SK.data();
D1 ^= *K++;
D2 ^= *K++;