yuzu/src/core/crypto
Lioncash 6467b01de2 partition_data_manager: Reserve and insert data within output vector in DecryptPackage2()
We can just reserve the memory then perform successive insertions
instead of needing to use memcpy. This also avoids the need to zero out
the output vector's memory before performing the insertions.

We can also std::move the output std::vector into the destination so
that we don't need to make a completely new copy of the vector, getting
rid of an unnecessary allocation.

Additionally, we can use iterators to determine the beginning and end
ranges of the std::vector instances that comprise the output vector, as
the end of one range just becomes the beginning for the next successive
range, and since std::vector's iterator constructor copies data within
the range [begin, end), this is more straightforward and gets rid of the
need to have an offset variable that keeps getting incremented to
determine where to do the next std::memcpy.
2018-10-13 09:50:08 -04:00
..
aes_util.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
aes_util.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
ctr_encryption_layer.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
ctr_encryption_layer.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
encryption_layer.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
encryption_layer.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
key_manager.cpp key_manager/partition_data_manager: Silence truncation compiler warnings 2018-10-13 09:13:19 -04:00
key_manager.h key_manager/partition_data_manager: Silence truncation compiler warnings 2018-10-13 09:13:19 -04:00
partition_data_manager.cpp partition_data_manager: Reserve and insert data within output vector in DecryptPackage2() 2018-10-13 09:50:08 -04:00
partition_data_manager.h partition_data_manager: Take package2_keys by const reference 2018-10-13 09:24:41 -04:00
sha_util.cpp Remove files that are not used 2018-08-01 00:16:54 -04:00
sha_util.h Remove files that are not used 2018-08-01 00:16:54 -04:00
xts_encryption_layer.cpp Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00
xts_encryption_layer.h Port #4182 from Citra: "Prefix all size_t with std::" 2018-09-15 15:21:06 +02:00