This commit is contained in:
Thomas Jentzsch 2023-01-17 16:29:23 +01:00
commit acbdaed7f3
3 changed files with 10 additions and 10 deletions

View File

@ -168,8 +168,8 @@ void MD5::transform(const uInt8* const block)
state[2] += c; state[2] += c;
state[3] += d; state[3] += d;
// Zeroize sensitive information. // Zeroize sensitive information (not required for Stella)
x.fill(0); // x.fill(0);
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -237,9 +237,9 @@ void MD5::finalize()
// Store state in digest // Store state in digest
encode(digest.data(), state.data(), 16); encode(digest.data(), state.data(), 16);
// Zeroize sensitive information // Zeroize sensitive information (not required for Stella)
buffer.fill(0); // buffer.fill(0);
count.fill(0); // count.fill(0);
finalized = true; finalized = true;
} }

View File

@ -23,9 +23,9 @@
class SettingsRepositoryMACOS : public KeyValueRepository class SettingsRepositoryMACOS : public KeyValueRepository
{ {
public: public:
std::map<string, Variant> load() override; KVRMap load() override;
bool save(const std::map<string, Variant>& values) override; bool save(const KVRMap& values) override;
}; };
#endif // SETTINGS_REPOSITORY_MACOS_HXX #endif // SETTINGS_REPOSITORY_MACOS_HXX

View File

@ -20,9 +20,9 @@
#include "SettingsRepositoryMACOS.hxx" #include "SettingsRepositoryMACOS.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
std::map<string, Variant> SettingsRepositoryMACOS::load() KVRMap SettingsRepositoryMACOS::load()
{ {
std::map<string, Variant> values; KVRMap values;
@autoreleasepool { @autoreleasepool {
NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier]; NSString* bundleId = [[NSBundle mainBundle] bundleIdentifier];
@ -40,7 +40,7 @@ std::map<string, Variant> SettingsRepositoryMACOS::load()
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool SettingsRepositoryMACOS::save(const std::map<string, Variant>& values) bool SettingsRepositoryMACOS::save(const KVRMap& values)
{ {
@autoreleasepool { @autoreleasepool {
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults]; NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];