From 2c3dc93d6466a9215d585613fb55f5222ce70d10 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 18 May 2012 13:58:23 +0000 Subject: First step towards replacing the existing containers with std::vector with a custom allocator; remove the 3 argument version of MemoryRegion::copy, replacing with freestanding buffer_insert function. --- src/hash/gost_3411/gost_3411.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/hash/gost_3411') diff --git a/src/hash/gost_3411/gost_3411.cpp b/src/hash/gost_3411/gost_3411.cpp index c0f39da47..6996e45e6 100644 --- a/src/hash/gost_3411/gost_3411.cpp +++ b/src/hash/gost_3411/gost_3411.cpp @@ -43,7 +43,7 @@ void GOST_34_11::add_data(const byte input[], size_t length) if(position) { - buffer.copy(position, input, length); + buffer_insert(buffer, position, input, length); if(position + length >= hash_block_size()) { @@ -60,7 +60,7 @@ void GOST_34_11::add_data(const byte input[], size_t length) if(full_blocks) compress_n(input, full_blocks); - buffer.copy(position, input + full_blocks * hash_block_size(), remaining); + buffer_insert(buffer, position, input + full_blocks * hash_block_size(), remaining); position += remaining; } -- cgit v1.2.3