diff options
author | lloyd <[email protected]> | 2010-10-12 23:29:55 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 23:29:55 +0000 |
commit | 2af9ba577730f071eef44b3ba492c3bfad0a8ec6 (patch) | |
tree | 92a4c4e973756225d42bb99a99110b2669be7299 /src/mac/cbc_mac/cbc_mac.cpp | |
parent | 97e8d6086171772cd5e45bcf2f5b1ea1e38e6bf5 (diff) |
Use size_t for BufferedComputation::add_data
Diffstat (limited to 'src/mac/cbc_mac/cbc_mac.cpp')
-rw-r--r-- | src/mac/cbc_mac/cbc_mac.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mac/cbc_mac/cbc_mac.cpp b/src/mac/cbc_mac/cbc_mac.cpp index 5b9708d41..1b03f0ab9 100644 --- a/src/mac/cbc_mac/cbc_mac.cpp +++ b/src/mac/cbc_mac/cbc_mac.cpp @@ -14,9 +14,9 @@ namespace Botan { /* * Update an CBC-MAC Calculation */ -void CBC_MAC::add_data(const byte input[], u32bit length) +void CBC_MAC::add_data(const byte input[], size_t length) { - u32bit xored = std::min(OUTPUT_LENGTH - position, length); + size_t xored = std::min(OUTPUT_LENGTH - position, length); xor_buf(&state[position], input, xored); position += xored; |