| 423 | } |
| 424 | |
| 425 | MMKV_EXPORT void checkReSetCryptKey(void *handle, char *oKey, uint64_t length, bool aes256) { |
| 426 | MMKV *kv = static_cast<MMKV *>(handle); |
| 427 | if (kv) { |
| 428 | if (oKey && length > 0) { |
| 429 | string key(oKey, length); |
| 430 | kv->checkReSetCryptKey(&key, aes256); |
| 431 | } else { |
| 432 | kv->checkReSetCryptKey(nullptr, aes256); |
| 433 | } |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | # endif // MMKV_DISABLE_CRYPT |
| 438 |
nothing calls this directly
no test coverage detected