aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/stream/ctr
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:54:36 +0200
committerSimon Warta <[email protected]>2015-06-23 18:54:36 +0200
commit9a841344acb1844082a0e46c26f91b4f50af86dd (patch)
tree3bad0843eaaa50ff2f6869a3c886a65493391946 /src/lib/stream/ctr
parente4cfc6684df02e1c1c2b583c764514cfc08e9c39 (diff)
lib/stream: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/stream/ctr')
-rw-r--r--src/lib/stream/ctr/ctr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/stream/ctr/ctr.cpp b/src/lib/stream/ctr/ctr.cpp
index 3b2e75f72..f1cdc7c42 100644
--- a/src/lib/stream/ctr/ctr.cpp
+++ b/src/lib/stream/ctr/ctr.cpp
@@ -87,7 +87,7 @@ void CTR_BE::set_iv(const byte iv[], size_t iv_len)
break;
}
- m_cipher->encrypt_n(&m_counter[0], &m_pad[0], n_wide);
+ m_cipher->encrypt_n(m_counter.data(), m_pad.data(), n_wide);
m_pad_pos = 0;
}
@@ -111,7 +111,7 @@ void CTR_BE::increment_counter()
}
}
- m_cipher->encrypt_n(&m_counter[0], &m_pad[0], n_wide);
+ m_cipher->encrypt_n(m_counter.data(), m_pad.data(), n_wide);
m_pad_pos = 0;
}