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