aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac/cmac/cmac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/cmac/cmac.cpp')
-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 adc08852c..7cd53f578 100644
--- a/src/mac/cmac/cmac.cpp
+++ b/src/mac/cmac/cmac.cpp
@@ -52,7 +52,7 @@ void CMAC::add_data(const byte input[], size_t length)
input += output_length();
length -= output_length();
}
- buffer.copy(input, length);
+ copy_mem(&buffer[0], input, length);
position = 0;
}
position += length;