diff options
author | lloyd <[email protected]> | 2012-05-18 14:24:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-05-18 14:24:51 +0000 |
commit | ab5c922f0e2635dc0e45fc757b27be9f28986acb (patch) | |
tree | c21a18bbfb316196b1b13488ef05f184f12be9f0 /src/mac/ssl3mac | |
parent | 2c3dc93d6466a9215d585613fb55f5222ce70d10 (diff) |
Remove all uses of MemoryRegion::copy outside of internal uses in
secmem.h. Mostly replaced by assign or copy_mem.
Diffstat (limited to 'src/mac/ssl3mac')
-rw-r--r-- | src/mac/ssl3mac/ssl3_mac.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mac/ssl3mac/ssl3_mac.cpp b/src/mac/ssl3mac/ssl3_mac.cpp index a07622eb3..8799c96a5 100644 --- a/src/mac/ssl3mac/ssl3_mac.cpp +++ b/src/mac/ssl3mac/ssl3_mac.cpp @@ -38,8 +38,9 @@ void SSL3_MAC::key_schedule(const byte key[], size_t length) std::fill(i_key.begin(), i_key.end(), 0x36); std::fill(o_key.begin(), o_key.end(), 0x5C); - i_key.copy(key, length); - o_key.copy(key, length); + copy_mem(&i_key[0], key, length); + copy_mem(&o_key[0], key, length); + hash->update(i_key); } |