diff options
author | Simon Warta <[email protected]> | 2015-06-23 18:54:36 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 18:54:36 +0200 |
commit | 9a841344acb1844082a0e46c26f91b4f50af86dd (patch) | |
tree | 3bad0843eaaa50ff2f6869a3c886a65493391946 /src/lib/stream/chacha | |
parent | e4cfc6684df02e1c1c2b583c764514cfc08e9c39 (diff) |
lib/stream: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/stream/chacha')
-rw-r--r-- | src/lib/stream/chacha/chacha.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/stream/chacha/chacha.cpp b/src/lib/stream/chacha/chacha.cpp index d0c534083..9841f99a2 100644 --- a/src/lib/stream/chacha/chacha.cpp +++ b/src/lib/stream/chacha/chacha.cpp @@ -71,7 +71,7 @@ void ChaCha::cipher(const byte in[], byte out[], size_t length) length -= (m_buffer.size() - m_position); in += (m_buffer.size() - m_position); out += (m_buffer.size() - m_position); - chacha(&m_buffer[0], &m_state[0]); + chacha(m_buffer.data(), m_state.data()); ++m_state[12]; m_state[13] += (m_state[12] == 0); @@ -144,7 +144,7 @@ void ChaCha::set_iv(const byte iv[], size_t length) m_state[15] = load_le<u32bit>(iv, 2); } - chacha(&m_buffer[0], &m_state[0]); + chacha(m_buffer.data(), m_state.data()); ++m_state[12]; m_state[13] += (m_state[12] == 0); |