36 Commits

Author SHA1 Message Date
guoling 32056220d4 Skip unused key wipe for decryptor clones 2026-09-07 10:24:56 +08:00
guoling 3938c95707 Use do-while for random IV reads 2026-08-20 22:17:00 +08:00
guoling baf36b8695 Refine v2.4.2 hardening fixes 2026-08-20 21:42:19 +08:00
guoling 7b20c03c34 Harden encrypted write and key handling 2026-08-05 13:39:29 +08:00
guoling dc9a604498 Harden encrypted MMKV key lifecycle 2026-08-04 21:28:36 +08:00
guoling 92bd98dca0 Fix secure wipe build failure on iOS #1675
Avoid the optional memset_s and explicit_bzero APIs by using volatile byte stores on non-Windows platforms.
2026-07-31 11:14:46 +08:00
guoling 6a55c88536 enhance random iv 2026-03-25 12:46:48 +08:00
guoling 8cb70d1123 add aes256 option on mmkv creation 2025-11-27 16:02:49 +08:00
guoling 2ba8ff9bc0 support AES 256 2025-09-24 11:55:35 +08:00
guoling b8b7ea45f3 fix MMKVCore debug build error 2024-10-21 20:56:33 +08:00
guoling 52973bea9b fix compile error on MMKV_DISABLE_CRYPT on ohos 2024-09-23 14:56:27 +08:00
guoling 0142f0bef6 fix compile error on debug build #1392 2024-08-29 10:21:26 +08:00
guoling 05afbde701 fix compile error on MMKV_DISABLE_CRYPT #1368 2024-07-26 20:55:52 +08:00
guoling 391d403bef use rand() instead of random() #1367 2024-07-26 20:34:11 +08:00
guoling dcdd4e6d1e use random size holder to make encryption resilient from brute force cracking 2024-07-17 11:28:17 +08:00
guoling 193d77e329 prepare for v1.2.4 2020-10-21 16:38:55 +08:00
guoling 74be762dc8 add MMKV_DISABLE_CRYPT preprocess directive 2020-07-01 18:12:00 +08:00
guoling 1d262bb195 hide KeyValueHolder from public header 2020-06-30 18:23:25 +08:00
guoling 5b633a2833 fix skipBytes() bug 2020-06-22 20:11:48 +08:00
guoling ffc70108ad fix some encrypt bug & drop iOS 8 2020-06-18 18:13:00 +08:00
guoling 0ad815fc5c encrypt & decrypt almost done 2020-06-17 20:44:56 +08:00
guoling 305bbca60d aes decrypt almost done 2020-06-16 21:48:18 +08:00
guoling 08cd88c7a5 tidy 2020-06-12 22:15:04 +08:00
guoling 1e06cd3c66 delete on dealloc 2020-06-12 22:05:58 +08:00
guoling cb097c3901 prepare for handling encrypted mmkv, decrypt rollback almost ready 2020-06-12 22:03:53 +08:00
guoling ffe9c90e24 add MMKV_ASSERT() 2020-01-21 15:45:01 +08:00
guoling 7f3f185d45 tune aes speed on armv8 2020-01-09 18:35:25 +08:00
guoling 8a1d777302 type safe for pb utils 2020-01-03 16:37:40 +08:00
guoling dd24e5a5e6 type safety 2020-01-03 12:14:35 +08:00
guoling 3c61c8ea2c fix flock() bug on ashmem in Android 2019-12-30 21:21:42 +08:00
guoling 9364d0ccfd add relativePath support for iOS 2019-12-24 22:13:42 +08:00
guoling c88a5eb695 add initializeMMKV for iOS & rename openssl files 2019-12-24 17:35:14 +08:00
guoling c389549990 move every OS dependent stuff out of MMKV.cpp 2019-12-09 18:06:48 +08:00
guoling d849125358 tidy 2019-12-06 11:39:34 +08:00
guoling f2d1230e37 prepare to replace hand-make-mmap with class MemoryFile 2019-12-05 18:18:09 +08:00
guoling b3494159f7 prepare to use Core lib 2019-12-03 21:14:31 +08:00