aboutsummaryrefslogtreecommitdiff
path: root/src/core/crypto/aes_util.cpp
AgeCommit message (Collapse)Author
2022-04-23general: Convert source file copyright comments over to SPDXMorph
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
2021-04-23aes_util: Make use of std::spanLioncash
Allows us to simplify the interface quite a bit as it will handle contiguous sequences for us.
2021-03-05aes_util: Remove malformed mbedtls_cipher_finish function callMorph
2020-08-06aes_util: Make use of non-template variant of TranscodeLioncash
Same behavior, less template instantiations.
2020-08-03aes_util: Allow SetIV to be non-allocatingLioncash
In a few places, the data to be set as the IV is already within an array. We shouldn't require this data to be heap-allocated if it doesn't need to be. This allows certain callers to reduce heap churn.
2018-09-15Port #4182 from Citra: "Prefix all size_t with std::"fearlessTobi
2018-09-04aes_util: Fix error involving reads of less than 0x10Zach Hilman
Issues with block size are fixed by making all reads minimum length of 0x10
2018-08-23aes_util: Make XTSTranscode stricter about sizesZach Hilman
XTS with Nintendo Tweak will fail mysteriously if the sector size is not 0x4000. Upgrade the critical log to an assert to prevent undefined behavior.
2018-08-04aes_util: Make CalculateNintendoTweak() an internally linked functionLioncash
This function doesn't directly depend on class state, so it can be hidden entirely from the interface in the cpp file.
2018-08-04aes_util: Make Transcode() a const member functionLioncash
This doesn't modify member state, so it can be made const.
2018-08-04core/crypto: Remove unnecessary includesLioncash
2018-08-01Make XCI comply to review and style guidelinesZach Hilman
2018-08-01Extract mbedtls to cpp fileZach Hilman
2018-08-01Remove files that are not usedZach Hilman