aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-05-18 13:58:23 +0000
committerlloyd <[email protected]>2012-05-18 13:58:23 +0000
commit2c3dc93d6466a9215d585613fb55f5222ce70d10 (patch)
tree9d44c738fdbb79103bed2d34c8fb171f8eaa00a2 /src/mac
parentc2d0d2982e96ab7ce15e90b8d73c9774e2650d86 (diff)
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.
Diffstat (limited to 'src/mac')
-rw-r--r--src/mac/cmac/cmac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mac/cmac/cmac.cpp b/src/mac/cmac/cmac.cpp
index baf22f4e8..adc08852c 100644
--- a/src/mac/cmac/cmac.cpp
+++ b/src/mac/cmac/cmac.cpp
@@ -38,7 +38,7 @@ SecureVector<byte> CMAC::poly_double(const MemoryRegion<byte>& in,
*/
void CMAC::add_data(const byte input[], size_t length)
{
- buffer.copy(position, input, length);
+ buffer_insert(buffer, position, input, length);
if(position + length > output_length())
{
xor_buf(state, buffer, output_length());