diff options
author | Simon Warta <[email protected]> | 2015-06-28 13:47:37 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-28 13:47:37 +0200 |
commit | dc5716db695462217390ddfc7c9189294493600a (patch) | |
tree | 43c90714200839d62b0211543bb89c7541167d6c /src/lib/block/camellia | |
parent | 7f904a4019a27628c145724e8c0bfcbfacb18e11 (diff) | |
parent | d007082daa03ddebd124c38393f42793a1b50811 (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.cpp | 2 |
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++; |