diff options
author | lloyd <[email protected]> | 2013-03-16 18:23:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-16 18:23:13 +0000 |
commit | 8da9041779bd7278652636af250693ec5e830e82 (patch) | |
tree | 72dbe0652694707d3ee81c545f51edaf95187282 /src | |
parent | 38a53b81d443349d64ed15ba58f4addcdc1cc627 (diff) |
Avoid really needless allocations
Diffstat (limited to 'src')
-rw-r--r-- | src/filters/modes/ocb/ocb.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/filters/modes/ocb/ocb.cpp b/src/filters/modes/ocb/ocb.cpp index 970475a9f..24f777b73 100644 --- a/src/filters/modes/ocb/ocb.cpp +++ b/src/filters/modes/ocb/ocb.cpp @@ -235,11 +235,10 @@ void OCB_Encryption::buffered_block(const byte input[], size_t input_length) xor_buf(&csum_accum[0], &input[0], proc_bytes); - offsets.clear(); for(size_t i = 0; i != to_proc; ++i) { m_offset ^= L(ctz(++m_block_index)); - offsets += m_offset; + copy_mem(&offsets[BS*i], &m_offset[0], BS); } copy_mem(&ctext_buf[0], &input[0], proc_bytes); |