diff options
author | lloyd <[email protected]> | 2012-05-18 13:58:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-05-18 13:58:23 +0000 |
commit | 2c3dc93d6466a9215d585613fb55f5222ce70d10 (patch) | |
tree | 9d44c738fdbb79103bed2d34c8fb171f8eaa00a2 /src/pk_pad/eme_pkcs/eme_pkcs.cpp | |
parent | c2d0d2982e96ab7ce15e90b8d73c9774e2650d86 (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/pk_pad/eme_pkcs/eme_pkcs.cpp')
-rw-r--r-- | src/pk_pad/eme_pkcs/eme_pkcs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pk_pad/eme_pkcs/eme_pkcs.cpp b/src/pk_pad/eme_pkcs/eme_pkcs.cpp index c4d6838b1..a217d6d03 100644 --- a/src/pk_pad/eme_pkcs/eme_pkcs.cpp +++ b/src/pk_pad/eme_pkcs/eme_pkcs.cpp @@ -29,7 +29,7 @@ SecureVector<byte> EME_PKCS1v15::pad(const byte in[], size_t inlen, for(size_t j = 1; j != olen - inlen - 1; ++j) while(out[j] == 0) out[j] = rng.next_byte(); - out.copy(olen - inlen, in, inlen); + buffer_insert(out, olen - inlen, in, inlen); return out; } |