From 4b70dbf7c24dc4f60349e96220601f6c55c81c52 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 26 Jun 2015 11:28:13 +0200 Subject: lib/block: Convert &vec[0] to vec.data() --- src/lib/block/camellia/camellia.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/block/camellia/camellia.cpp') 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(in, 0); u64bit D2 = load_be(in, 1); - const u64bit* K = &SK[0]; + const u64bit* K = SK.data(); D1 ^= *K++; D2 ^= *K++; -- cgit v1.2.3